# HG changeset patch # User Bram Moolenaar # Date 1586339105 -7200 # Node ID 4c2ff5ddb5dbcece3553bdcb82f0aa25c09625b4 # Parent 646c5cc8d9abb219e4a3d78b3ec574ccd21942a1 patch 8.2.0530: test crashes on s390 Commit: https://github.com/vim/vim/commit/a65c28813425dc1c04424ee18980d1733e982604 Author: Bram Moolenaar Date: Wed Apr 8 11:31:48 2020 +0200 patch 8.2.0530: test crashes on s390 Problem: Test crashes on s390. (James McCoy) Solution: Explicitly define an 8 big signed type. (closes https://github.com/vim/vim/issues/5897) diff --git a/src/structs.h b/src/structs.h --- a/src/structs.h +++ b/src/structs.h @@ -1290,6 +1290,10 @@ typedef long_u hash_T; // Type for hi_h # endif #endif +// On rare systems "char" is unsigned, sometimes we really want a signed 8-bit +// value. +typedef signed char int8_T; + typedef double float_T; typedef struct listvar_S list_T; @@ -1342,7 +1346,7 @@ typedef enum typedef struct type_S type_T; struct type_S { vartype_T tt_type; - char tt_argcount; // for func, -1 for unknown + int8_T tt_argcount; // for func, -1 for unknown char tt_min_argcount; // number of non-optional arguments char tt_flags; // TTFLAG_ values type_T *tt_member; // for list, dict, func return type diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 530, +/**/ 529, /**/ 528,