mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
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).
This commit is contained in:

committed by
Thiago de Arruda

parent
22dd4f62d3
commit
f4b81576cc
@@ -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);
|
||||
|
Reference in New Issue
Block a user