mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +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
@@ -602,8 +602,8 @@ static void catch_exception(except_T *excp)
|
||||
set_vim_var_string(VV_EXCEPTION, excp->value, -1);
|
||||
if (*excp->throw_name != NUL) {
|
||||
if (excp->throw_lnum != 0)
|
||||
vim_snprintf((char *)IObuff, IOSIZE, _("%s, line %ld"),
|
||||
excp->throw_name, (long)excp->throw_lnum);
|
||||
vim_snprintf((char *)IObuff, IOSIZE, _("%s, line %" PRId64),
|
||||
excp->throw_name, (int64_t)excp->throw_lnum);
|
||||
else
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "%s", excp->throw_name);
|
||||
set_vim_var_string(VV_THROWPOINT, IObuff, -1);
|
||||
@@ -648,8 +648,8 @@ static void finish_exception(except_T *excp)
|
||||
if (*caught_stack->throw_name != NUL) {
|
||||
if (caught_stack->throw_lnum != 0)
|
||||
vim_snprintf((char *)IObuff, IOSIZE,
|
||||
_("%s, line %ld"), caught_stack->throw_name,
|
||||
(long)caught_stack->throw_lnum);
|
||||
_("%s, line %" PRId64), caught_stack->throw_name,
|
||||
(int64_t)caught_stack->throw_lnum);
|
||||
else
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "%s",
|
||||
caught_stack->throw_name);
|
||||
|
Reference in New Issue
Block a user