mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
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:

committed by
Thiago de Arruda

parent
f916cf067d
commit
fb94edf373
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user