From bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55 Mon Sep 17 00:00:00 2001 From: Eliseo Martínez Date: Sun, 20 Apr 2014 15:10:16 +0200 Subject: 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. --- src/undo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/undo.c') 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 -- cgit