aboutsummaryrefslogtreecommitdiff
path: root/src/getchar.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/getchar.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/getchar.c')
-rw-r--r--src/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index b0d3011aff..11522786b0 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -308,7 +308,7 @@ static void add_num_buff(buffheader_T *buf, long n)
{
char_u number[32];
- sprintf((char *)number, "%ld", n);
+ sprintf((char *)number, "%" PRId64, (int64_t)n);
add_buff(buf, number, -1L);
}