changeset 19948:4c2ff5ddb5db v8.2.0530

patch 8.2.0530: test crashes on s390 Commit: https://github.com/vim/vim/commit/a65c28813425dc1c04424ee18980d1733e982604 Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Apr 2020 11:45:05 +0200
parents 646c5cc8d9ab
children 313b448185bc
files src/structs.h src/version.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,