mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 20:48:32 +00:00
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:

committed by
Thiago de Arruda

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