diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-04-19 19:29:11 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-23 06:56:32 -0300 |
commit | 7dc649c9064062130db8a3d22a9a91b155a08ec5 (patch) | |
tree | f1bb003e465a25ffab1cae256466a9422b8ce0df /src | |
parent | 8f710a4103607c3568b31bc9b1002aafc6954489 (diff) | |
download | rneovim-7dc649c9064062130db8a3d22a9a91b155a08ec5.tar.gz rneovim-7dc649c9064062130db8a3d22a9a91b155a08ec5.tar.bz2 rneovim-7dc649c9064062130db8a3d22a9a91b155a08ec5.zip |
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |