Mercurial > vim
comparison src/structs.h @ 25895:8e9864b98846 v8.2.3481
patch 8.2.3481: failures when char is unsigned
Commit: https://github.com/vim/vim/commit/2e258bd79f403bcccb1336bea70803957a83808f
Author: James McCoy <jamessan@jamessan.com>
Date: Tue Oct 5 19:44:04 2021 +0100
patch 8.2.3481: failures when char is unsigned
Problem: Failures when char is unsigned.
Solution: Use int8_T. Make a CI run with unsigned char. (James McCoy,
closes #8936)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Oct 2021 20:45:03 +0200 |
parents | c83ebae45881 |
children | d7e1cf30728c |
comparison
equal
deleted
inserted
replaced
25894:389560a21382 | 25895:8e9864b98846 |
---|---|
1404 // A type specification. | 1404 // A type specification. |
1405 typedef struct type_S type_T; | 1405 typedef struct type_S type_T; |
1406 struct type_S { | 1406 struct type_S { |
1407 vartype_T tt_type; | 1407 vartype_T tt_type; |
1408 int8_T tt_argcount; // for func, incl. vararg, -1 for unknown | 1408 int8_T tt_argcount; // for func, incl. vararg, -1 for unknown |
1409 char tt_min_argcount; // number of non-optional arguments | 1409 int8_T tt_min_argcount; // number of non-optional arguments |
1410 char tt_flags; // TTFLAG_ values | 1410 char_u tt_flags; // TTFLAG_ values |
1411 type_T *tt_member; // for list, dict, func return type | 1411 type_T *tt_member; // for list, dict, func return type |
1412 type_T **tt_args; // func argument types, allocated | 1412 type_T **tt_args; // func argument types, allocated |
1413 }; | 1413 }; |
1414 | 1414 |
1415 #define TTFLAG_VARARGS 1 // func args ends with "..." | 1415 #define TTFLAG_VARARGS 1 // func args ends with "..." |