Skip to content

Commit a65c288

Browse files
committed
patch 8.2.0530: test crashes on s390
Problem: Test crashes on s390. (James McCoy) Solution: Explicitly define an 8 big signed type. (closes #5897)
1 parent 49cf7cc commit a65c288

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/structs.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,10 @@ typedef long_u hash_T; // Type for hi_hash
12901290
# endif
12911291
#endif
12921292

1293+
// On rare systems "char" is unsigned, sometimes we really want a signed 8-bit
1294+
// value.
1295+
typedef signed char int8_T;
1296+
12931297
typedef double float_T;
12941298

12951299
typedef struct listvar_S list_T;
@@ -1342,7 +1346,7 @@ typedef enum
13421346
typedef struct type_S type_T;
13431347
struct type_S {
13441348
vartype_T tt_type;
1345-
char tt_argcount; // for func, -1 for unknown
1349+
int8_T tt_argcount; // for func, -1 for unknown
13461350
char tt_min_argcount; // number of non-optional arguments
13471351
char tt_flags; // TTFLAG_ values
13481352
type_T *tt_member; // for list, dict, func return type

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
530,
741743
/**/
742744
529,
743745
/**/

0 commit comments

Comments
 (0)