]> granicus.if.org Git - vim/commitdiff
patch 8.2.0530: test crashes on s390 v8.2.0530
authorBram Moolenaar <Bram@vim.org>
Wed, 8 Apr 2020 09:31:48 +0000 (11:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 8 Apr 2020 09:31:48 +0000 (11:31 +0200)
Problem:    Test crashes on s390. (James McCoy)
Solution:   Explicitly define an 8 big signed type. (closes #5897)

src/structs.h
src/version.c

index 46e27012c89c5c3ad2b426edd541709025226dd5..851ee6310e40a63f00a2f051fb430151112a6d5f 100644 (file)
@@ -1290,6 +1290,10 @@ typedef long_u hash_T;           // Type for hi_hash
 # 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
index a3c54cb85c7d9ca6a5edaaea94b72dc40ccb434b..2caae75d11c6d9e1bb8db6e527f00fec5753138e 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    530,
 /**/
     529,
 /**/