aboutsummaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-19 12:28:26 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitfb94edf373418362b803e60bed67525bd5720916 (patch)
treec85dc6180294d90005e21d096ab737e9f65bd6bd /src/message.c
parentf916cf067d42d1dfd8ed477fdd5e3f0bda665eee (diff)
downloadrneovim-fb94edf373418362b803e60bed67525bd5720916.tar.gz
rneovim-fb94edf373418362b803e60bed67525bd5720916.tar.bz2
rneovim-fb94edf373418362b803e60bed67525bd5720916.zip
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).
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index b0b13dfd4a..47143281fa 100644
--- a/src/message.c
+++ b/src/message.c
@@ -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);
}