aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 18:27:12 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitf4b81576cc0c2c2ef5f2dd31a331fdfc103b3556 (patch)
tree589926c5615d179d445e18ba60dae70c2386f0eb /src/buffer.c
parent22dd4f62d3e0391eb88715b663bd84cae4f435c0 (diff)
downloadrneovim-f4b81576cc0c2c2ef5f2dd31a331fdfc103b3556.tar.gz
rneovim-f4b81576cc0c2c2ef5f2dd31a331fdfc103b3556.tar.bz2
rneovim-f4b81576cc0c2c2ef5f2dd31a331fdfc103b3556.zip
Use portable format specifiers: Case %ld - localized - vim_snprintf_add.
Fix uses of localized "%ld" within vim_snprintf_add(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8a4323660f..db773a4e09 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2578,9 +2578,9 @@ fileinfo (
(int64_t)curbuf->b_ml.ml_line_count, n);
} else {
vim_snprintf_add((char *)buffer, IOSIZE,
- _("line %ld of %ld --%d%%-- col "),
- (long)curwin->w_cursor.lnum,
- (long)curbuf->b_ml.ml_line_count,
+ _("line %" PRId64 " of %" PRId64 " --%d%%-- col "),
+ (int64_t)curwin->w_cursor.lnum,
+ (int64_t)curbuf->b_ml.ml_line_count,
n);
validate_virtcol();
len = STRLEN(buffer);