aboutsummaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 12:59:31 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitc049cb2b5103d1f9c71b9b90a197bf17205867a2 (patch)
tree31946b1200173aa4f3cf41ac63390c1c1e921900 /src/ops.c
parent182b84e1c3f37b540e8b4436bc08854b8be892eb (diff)
downloadrneovim-c049cb2b5103d1f9c71b9b90a197bf17205867a2.tar.gz
rneovim-c049cb2b5103d1f9c71b9b90a197bf17205867a2.tar.bz2
rneovim-c049cb2b5103d1f9c71b9b90a197bf17205867a2.zip
Use portable format specifiers: Case %ld - localized - smsg.
Fix uses of localized "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ops.c b/src/ops.c
index 9ac6ae8e92..66c1a218c6 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -594,7 +594,7 @@ int (*how)(void);
if (i > 1
&& (i % 50 == 0 || i == oap->line_count - 1)
&& oap->line_count > p_report)
- smsg((char_u *)_("%ld lines to indent... "), i);
+ smsg((char_u *)_("%" PRId64 " lines to indent... "), (int64_t)i);
/*
* Be vi-compatible: For lisp indenting the first line is not
@@ -638,7 +638,7 @@ int (*how)(void);
if (i == 1)
MSG(_("1 line indented "));
else
- smsg((char_u *)_("%ld lines indented "), i);
+ smsg((char_u *)_("%" PRId64 " lines indented "), (int64_t)i);
}
/* set '[ and '] marks */
curbuf->b_op_start = oap->start;
@@ -1953,7 +1953,7 @@ void op_tilde(oparg_T *oap)
if (oap->line_count == 1)
MSG(_("1 line changed"));
else
- smsg((char_u *)_("%ld lines changed"), oap->line_count);
+ smsg((char_u *)_("%" PRId64 " lines changed"), (int64_t)oap->line_count);
}
}
@@ -2556,9 +2556,10 @@ int op_yank(oparg_T *oap, int deleting, int mess)
else
MSG(_("1 line yanked"));
} else if (oap->block_mode)
- smsg((char_u *)_("block of %ld lines yanked"), yanklines);
+ smsg((char_u *)_("block of %" PRId64 " lines yanked"),
+ (int64_t)yanklines);
else
- smsg((char_u *)_("%ld lines yanked"), yanklines);
+ smsg((char_u *)_("%" PRId64 " lines yanked"), (int64_t)yanklines);
}
}