aboutsummaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 18:33:45 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitb536c22550db16836726b38494faa9be2f55e738 (patch)
tree3156f52cce14a2ac333c68e1a0ed8bbd4879f617 /src/ops.c
parentfb94edf373418362b803e60bed67525bd5720916 (diff)
downloadrneovim-b536c22550db16836726b38494faa9be2f55e738.tar.gz
rneovim-b536c22550db16836726b38494faa9be2f55e738.tar.bz2
rneovim-b536c22550db16836726b38494faa9be2f55e738.zip
Use portable format specifiers: Case %ld - localized - sprintf.
Fix uses of localized "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ops.c b/src/ops.c
index a2822bf6a0..9ac6ae8e92 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -255,11 +255,11 @@ void op_shift(oparg_T *oap, int curs_top, int amount)
sprintf((char *)IObuff, _("1 line %sed %d times"), s, amount);
} else {
if (amount == 1)
- sprintf((char *)IObuff, _("%ld lines %sed 1 time"),
- oap->line_count, s);
+ sprintf((char *)IObuff, _("%" PRId64 " lines %sed 1 time"),
+ (int64_t)oap->line_count, s);
else
- sprintf((char *)IObuff, _("%ld lines %sed %d times"),
- oap->line_count, s, amount);
+ sprintf((char *)IObuff, _("%" PRId64 " lines %sed %d times"),
+ (int64_t)oap->line_count, s, amount);
}
msg(IObuff);
}
@@ -5192,8 +5192,8 @@ void cursor_pos_info(void)
byte_count = bomb_size();
if (byte_count > 0)
- sprintf((char *)IObuff + STRLEN(IObuff), _("(+%ld for BOM)"),
- byte_count);
+ sprintf((char *)IObuff + STRLEN(IObuff), _("(+%" PRId64 " for BOM)"),
+ (int64_t)byte_count);
/* Don't shorten this message, the user asked for it. */
p = p_shm;
p_shm = (char_u *)"";