diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-12 06:45:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-12 06:45:20 +0200 |
commit | f9b0129f5f236b891c4f2085951c8cc1a79e5784 (patch) | |
tree | 16a20718119eae694c5984678e0bfe4d66d30f32 | |
parent | 6f0d3dd27053c91e7b67d81f086c085e074e8d24 (diff) | |
download | vim-f9b0129f5f236b891c4f2085951c8cc1a79e5784.zip |
Avoid compiler warnings on Mac 10.6.
-rw-r--r-- | src/fileio.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/fileio.c b/src/fileio.c index cead60407..bc629f39e 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -5225,11 +5225,12 @@ msg_add_lines(insert_space, lnum, nchars) if (shortmess(SHM_LINES)) sprintf((char *)p, #ifdef LONG_LONG_OFF_T - "%ldL, %lldC", + "%ldL, %lldC", lnum, nchars #else - "%ldL, %ldC", + /* Explicit typecast avoids warning on Mac OS X 10.6 */ + "%ldL, %ldC", lnum, (long)nchars #endif - lnum, nchars); + ); else { if (lnum == 1) @@ -5242,11 +5243,12 @@ msg_add_lines(insert_space, lnum, nchars) else sprintf((char *)p, #ifdef LONG_LONG_OFF_T - _("%lld characters"), + _("%lld characters"), nchars #else - _("%ld characters"), + /* Explicit typecast avoids warning on Mac OS X 10.6 */ + _("%ld characters"), (long)nchars #endif - nchars); + ); } } |