aboutsummaryrefslogtreecommitdiff
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 14:37:11 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commit22dd4f62d3e0391eb88715b663bd84cae4f435c0 (patch)
tree878e33a94feca564010031dbbc7482137cc1d612 /src/ex_eval.c
parent3f8061f16c820d32d87f2b608c292ae4d9fb0415 (diff)
downloadrneovim-22dd4f62d3e0391eb88715b663bd84cae4f435c0.tar.gz
rneovim-22dd4f62d3e0391eb88715b663bd84cae4f435c0.tar.bz2
rneovim-22dd4f62d3e0391eb88715b663bd84cae4f435c0.zip
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).
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index c249b8482b..14226438e6 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -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);