mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
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:

committed by
Thiago de Arruda

parent
c049cb2b51
commit
3f8061f16c
@@ -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);
|
||||
|
Reference in New Issue
Block a user