Use portable format specifiers: Case %ld - localized - vim_snprintf.

Fix uses of localized "%ld" within vim_snprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
This commit is contained in:
Eliseo Martínez
2014-04-20 14:37:11 +02:00
committed by Thiago de Arruda
parent 3f8061f16c
commit 22dd4f62d3
8 changed files with 52 additions and 47 deletions

View File

@@ -1813,8 +1813,8 @@ static void inc_msg_scrolled(void)
else {
len = (int)STRLEN(p) + 40;
tofree = alloc(len);
vim_snprintf((char *)tofree, len, _("%s line %ld"),
p, (long)sourcing_lnum);
vim_snprintf((char *)tofree, len, _("%s line %" PRId64),
p, (int64_t)sourcing_lnum);
p = tofree;
}
set_vim_var_string(VV_SCROLLSTART, p, -1);