0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.2029

Problem:    printf() does not work with 64 bit numbers.
Solution:   use the "L" length modifier. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-07-12 21:11:33 +02:00
parent 5498a41f5a
commit 38ee6b041e
3 changed files with 17 additions and 0 deletions

View File

@@ -4198,6 +4198,15 @@ vim_vsnprintf(
default: break;
}
# if defined(FEAT_EVAL) && defined(FEAT_NUM64)
switch (fmt_spec)
{
case 'd': case 'u': case 'o': case 'x': case 'X':
if (tvs != NULL && length_modifier == '\0')
length_modifier = 'L';
}
# endif
/* get parameter value, do initial processing */
switch (fmt_spec)
{