aboutsummaryrefslogtreecommitdiff
path: root/src/undo.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/undo.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/undo.c')
-rw-r--r--src/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c
index 72fbd20447..0a66a376eb 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -2330,11 +2330,11 @@ u_undo_end (
}
}
- smsg((char_u *)_("%ld %s; %s #%ld %s"),
- u_oldcount < 0 ? -u_oldcount : u_oldcount,
+ smsg((char_u *)_("%" PRId64 " %s; %s #%" PRId64 " %s"),
+ u_oldcount < 0 ? (int64_t)-u_oldcount : (int64_t)u_oldcount,
_(msgstr),
did_undo ? _("before") : _("after"),
- uhp == NULL ? 0L : uhp->uh_seq,
+ uhp == NULL ? (int64_t)0L : (int64_t)uhp->uh_seq,
msgbuf);
}