Use portable format specifiers: Case %ld - localized - vim_snprintf.

Fix uses of localized "%ld" within vim_snprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
This commit is contained in:
Eliseo Martínez
2014-04-20 14:37:11 +02:00
committed by Thiago de Arruda
parent 3f8061f16c
commit 22dd4f62d3
8 changed files with 52 additions and 47 deletions

View File

@@ -1190,7 +1190,7 @@ do_filter (
if (linecount > p_report) {
if (do_in) {
vim_snprintf((char *)msg_buf, sizeof(msg_buf),
_("%ld lines filtered"), (long)linecount);
_("%" PRId64 " lines filtered"), (int64_t)linecount);
if (msg(msg_buf) && !msg_scroll)
/* save message to display it after redraw */
set_keep_msg(msg_buf, 0);