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

Fix uses of plain "%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:32:07 +02:00
committed by Thiago de Arruda
parent c049cb2b51
commit 3f8061f16c
5 changed files with 11 additions and 10 deletions

View File

@@ -2738,7 +2738,7 @@ do_ecmd (
if (command != NULL)
vim_snprintf((char *)p, len, ":%s\r", command);
else
vim_snprintf((char *)p, len, "%ldG", (long)newlnum);
vim_snprintf((char *)p, len, "%" PRId64 "G", (int64_t)newlnum);
set_vim_var_string(VV_SWAPCOMMAND, p, -1);
did_set_swapcommand = TRUE;
vim_free(p);