comparison src/fileio.c @ 5688:6050f52d7cd8 v7.4.190

updated for version 7.4.190 Problem: Compiler warning for using %lld for off_t. Solution: Add type cast.
author Bram Moolenaar <bram@vim.org>
date Sun, 23 Feb 2014 22:58:17 +0100
parents 136f05449f29
children 47a673b20e49
comparison
equal deleted inserted replaced
5687:7846d5639645 5688:6050f52d7cd8
5292 if (insert_space) 5292 if (insert_space)
5293 *p++ = ' '; 5293 *p++ = ' ';
5294 if (shortmess(SHM_LINES)) 5294 if (shortmess(SHM_LINES))
5295 sprintf((char *)p, 5295 sprintf((char *)p,
5296 #ifdef LONG_LONG_OFF_T 5296 #ifdef LONG_LONG_OFF_T
5297 "%ldL, %lldC", lnum, nchars 5297 "%ldL, %lldC", lnum, (long long)nchars
5298 #else 5298 #else
5299 /* Explicit typecast avoids warning on Mac OS X 10.6 */ 5299 /* Explicit typecast avoids warning on Mac OS X 10.6 */
5300 "%ldL, %ldC", lnum, (long)nchars 5300 "%ldL, %ldC", lnum, (long)nchars
5301 #endif 5301 #endif
5302 ); 5302 );
5310 if (nchars == 1) 5310 if (nchars == 1)
5311 STRCPY(p, _("1 character")); 5311 STRCPY(p, _("1 character"));
5312 else 5312 else
5313 sprintf((char *)p, 5313 sprintf((char *)p,
5314 #ifdef LONG_LONG_OFF_T 5314 #ifdef LONG_LONG_OFF_T
5315 _("%lld characters"), nchars 5315 _("%lld characters"), (long long)nchars
5316 #else 5316 #else
5317 /* Explicit typecast avoids warning on Mac OS X 10.6 */ 5317 /* Explicit typecast avoids warning on Mac OS X 10.6 */
5318 _("%ld characters"), (long)nchars 5318 _("%ld characters"), (long)nchars
5319 #endif 5319 #endif
5320 ); 5320 );