diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-22 14:27:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-22 14:27:04 +0100 |
commit | f9706e9df0e37d214fb08eda30ba29627e97a607 (patch) | |
tree | 9d90ad2977ed759664a2c2d0776901f34a8e0350 /src/fileio.c | |
parent | c036e87bd7001238ab7cc5d9e30e59bbf989a5fd (diff) | |
download | vim-git-f9706e9df0e37d214fb08eda30ba29627e97a607.tar.gz |
patch 8.2.0296: mixing up "long long" and __int64 may cause problemsv8.2.0296
Problem: Mixing up "long long" and __int64 may cause problems. (John
Marriott)
Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index 575efafd2..e80009fbe 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3016,14 +3016,14 @@ msg_add_lines( *p++ = ' '; if (shortmess(SHM_LINES)) vim_snprintf((char *)p, IOSIZE - (p - IObuff), - "%ldL, %lldC", lnum, (long_long_T)nchars); + "%ldL, %lldC", lnum, (varnumber_T)nchars); else { sprintf((char *)p, NGETTEXT("%ld line, ", "%ld lines, ", lnum), lnum); p += STRLEN(p); vim_snprintf((char *)p, IOSIZE - (p - IObuff), NGETTEXT("%lld character", "%lld characters", nchars), - (long_long_T)nchars); + (varnumber_T)nchars); } } |