aboutsummaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 15:10:16 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:33 -0300
commitbf3b9d0ecbb16fc998c1c9656fd2ec235708ec55 (patch)
tree944fec853b79be322a5a92f31e93025e1389ef23 /src/undo.c
parent5b0aa1cb578914426a26573ba3a7b34dfd65bf04 (diff)
downloadrneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.tar.gz
rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.tar.bz2
rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.zip
Use portable format specifiers: Case %ld - plain - EMSGN.
Fix uses of plain "%ld" within EMSGN(): - Replace "%ld" with "%" PRId64. - No argument cast needed. EMSGN() will take care of that.
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 6d3fa5c040..ebfb9280df 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -1291,8 +1291,8 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
write_ok = TRUE;
#ifdef U_DEBUG
if (headers_written != buf->b_u_numhead) {
- EMSGN("Written %ld headers, ...", headers_written);
- EMSGN("... but numhead is %ld", buf->b_u_numhead);
+ EMSGN("Written %" PRId64 " headers, ...", headers_written);
+ EMSGN("... but numhead is %" PRId64, buf->b_u_numhead);
}
#endif
@@ -1593,7 +1593,7 @@ void u_read_undo(char_u *name, char_u *hash, char_u *orig_name)
#ifdef U_DEBUG
for (i = 0; i < num_head; ++i)
if (uhp_table_used[i] == 0)
- EMSGN("uhp_table entry %ld not used, leaking memory", i);
+ EMSGN("uhp_table entry %" PRId64 " not used, leaking memory", i);
vim_free(uhp_table_used);
u_check(TRUE);
#endif