aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 12:49:33 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commit182b84e1c3f37b540e8b4436bc08854b8be892eb (patch)
tree8b920212449aba3e23625e6d53c55d93b13c2f46
parent1bffe66508ff986a61c0e08caddc92b7f3ace81e (diff)
downloadrneovim-182b84e1c3f37b540e8b4436bc08854b8be892eb.tar.gz
rneovim-182b84e1c3f37b540e8b4436bc08854b8be892eb.tar.bz2
rneovim-182b84e1c3f37b540e8b4436bc08854b8be892eb.zip
Use portable format specifiers: Case %ld - plain - smsg.
Fix uses of plain "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
-rw-r--r--src/ex_docmd.c2
-rw-r--r--src/undo.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 19a297928a..2f6bf428b4 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -6663,7 +6663,7 @@ static void ex_pwd(exarg_T *eap)
*/
static void ex_equal(exarg_T *eap)
{
- smsg((char_u *)"%ld", (long)eap->line2);
+ smsg((char_u *)"%" PRId64, (int64_t)eap->line2);
ex_may_print(eap);
}
diff --git a/src/undo.c b/src/undo.c
index cf5911c3d4..72fbd20447 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -219,8 +219,8 @@ static void u_check(int newhead_may_be_NULL) {
EMSGN("b_u_curhead invalid: 0x%x", curbuf->b_u_curhead);
if (header_count != curbuf->b_u_numhead) {
EMSG("b_u_numhead invalid");
- smsg((char_u *)"expected: %ld, actual: %ld",
- (long)header_count, (long)curbuf->b_u_numhead);
+ smsg((char_u *)"expected: %" PRId64 ", actual: %" PRId64,
+ (int64_t)header_count, (int64_t)curbuf->b_u_numhead);
}
}