mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
Avoid compiler warnings on Mac 10.6.
This commit is contained in:
14
src/fileio.c
14
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);
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user