aboutsummaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 18:27:12 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitf4b81576cc0c2c2ef5f2dd31a331fdfc103b3556 (patch)
tree589926c5615d179d445e18ba60dae70c2386f0eb /src/ex_cmds.c
parent22dd4f62d3e0391eb88715b663bd84cae4f435c0 (diff)
downloadrneovim-f4b81576cc0c2c2ef5f2dd31a331fdfc103b3556.tar.gz
rneovim-f4b81576cc0c2c2ef5f2dd31a331fdfc103b3556.tar.bz2
rneovim-f4b81576cc0c2c2ef5f2dd31a331fdfc103b3556.zip
Use portable format specifiers: Case %ld - localized - vim_snprintf_add.
Fix uses of localized "%ld" within vim_snprintf_add(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index e7531eee50..625e7dca31 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4488,14 +4488,16 @@ do_sub_msg (
"%s", count_only ? _("1 match") : _("1 substitution"));
else
vim_snprintf_add((char *)msg_buf, sizeof(msg_buf),
- count_only ? _("%ld matches") : _("%ld substitutions"),
- sub_nsubs);
+ count_only ?
+ _("%" PRId64 " matches") :
+ _("%" PRId64 " substitutions"),
+ (int64_t)sub_nsubs);
if (sub_nlines == 1)
vim_snprintf_add((char *)msg_buf, sizeof(msg_buf),
"%s", _(" on 1 line"));
else
vim_snprintf_add((char *)msg_buf, sizeof(msg_buf),
- _(" on %ld lines"), (long)sub_nlines);
+ _(" on %" PRId64 " lines"), (int64_t)sub_nlines);
if (msg(msg_buf))
/* save message to display it after redraw */
set_keep_msg(msg_buf, 0);