From 7dc649c9064062130db8a3d22a9a91b155a08ec5 Mon Sep 17 00:00:00 2001 From: Eliseo Martínez Date: Sat, 19 Apr 2014 19:29:11 +0200 Subject: Use portable format specifiers: Case %lld - plain - sprintf. Fix uses of plain "%lld" within sprintf(): - Replace "%lld" with "%" PRId64. - Cast corresponding argument to (int64_t). --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fileio.c b/src/fileio.c index 767969f9c8..e64682b903 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4148,7 +4148,7 @@ void msg_add_lines(int insert_space, long lnum, off_t nchars) *p++ = ' '; if (shortmess(SHM_LINES)) { #ifdef LONG_LONG_OFF_T - sprintf((char *)p, "%ldL, %lldC", lnum, nchars); + sprintf((char *)p, "%ldL, %" PRId64 "C", lnum, (int64_t)nchars); #else /* Explicit typecast avoids warning on Mac OS X 10.6 */ sprintf((char *)p, "%ldL, %ldC", lnum, (long)nchars); -- cgit