Use portable format specifiers: Case %ld - plain - sprintf.

Fix uses of plain "%ld" within sprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
This commit is contained in:
Eliseo Martínez
2014-04-19 12:28:26 +02:00
committed by Thiago de Arruda
parent f916cf067d
commit fb94edf373
12 changed files with 34 additions and 32 deletions

View File

@@ -1064,7 +1064,7 @@ void msg_outnum(long n)
{
char_u buf[20];
sprintf((char *)buf, "%ld", n);
sprintf((char *)buf, "%" PRId64, (int64_t)n);
msg_puts(buf);
}