0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0364: printf test failing on Haiku

Problem:    Printf test failing on Haiku.
Solution:   Make a difference between int and short. (Dominique Pelle,
            closes #5749)
This commit is contained in:
Bram Moolenaar
2020-03-08 18:41:09 +01:00
parent f5f1e10d0d
commit 693e80e938
2 changed files with 14 additions and 4 deletions

View File

@@ -4722,9 +4722,13 @@ vim_vsnprintf_typval(
// signed
switch (length_modifier)
{
case '\0':
case '\0': str_arg_l += sprintf(
tmp + str_arg_l, f,
int_arg);
break;
case 'h': str_arg_l += sprintf(
tmp + str_arg_l, f, int_arg);
tmp + str_arg_l, f,
(short)int_arg);
break;
case 'l': str_arg_l += sprintf(
tmp + str_arg_l, f, long_arg);
@@ -4739,9 +4743,13 @@ vim_vsnprintf_typval(
// unsigned
switch (length_modifier)
{
case '\0':
case '\0': str_arg_l += sprintf(
tmp + str_arg_l, f,
uint_arg);
break;
case 'h': str_arg_l += sprintf(
tmp + str_arg_l, f, uint_arg);
tmp + str_arg_l, f,
(unsigned short)uint_arg);
break;
case 'l': str_arg_l += sprintf(
tmp + str_arg_l, f, ulong_arg);

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
364,
/**/
363,
/**/