portability: use portable format specifier

This commit is contained in:
Justin M. Keyes
2016-01-10 01:10:38 -05:00
parent 9bf694ff0b
commit c6e481cba5
2 changed files with 3 additions and 3 deletions

View File

@@ -7999,7 +7999,7 @@ static void prepare_assert_error(garray_T *gap)
} }
} }
if (sourcing_lnum > 0) { if (sourcing_lnum > 0) {
vim_snprintf(buf, ARRAY_SIZE(buf), "line %ld", (long)sourcing_lnum); vim_snprintf(buf, ARRAY_SIZE(buf), "line %" PRId64, (long)sourcing_lnum);
ga_concat(gap, (char_u *)buf); ga_concat(gap, (char_u *)buf);
} }
if (sourcing_name != NULL || sourcing_lnum > 0) { if (sourcing_name != NULL || sourcing_lnum > 0) {

View File

@@ -4,10 +4,10 @@ local helpers = require('test.functional.helpers')
local source = helpers.source local source = helpers.source
local clear, expect = helpers.clear, helpers.expect local clear, expect = helpers.clear, helpers.expect
describe('undolevel', function() describe('lispwords', function()
setup(clear) setup(clear)
it('is working', function() it('global-local', function()
source([[ source([[
setglobal lispwords=foo,bar,baz setglobal lispwords=foo,bar,baz
setlocal lispwords-=foo setlocal lispwords-=foo