summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-02-16 19:24:07 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-16 19:24:07 +0000
commitae6f1d8b14c2f63811ee83ef14e32086fb3e9b83 (patch)
tree4982335c2afa3ef8515860dabea038acbc2af406 /src/syntax.c
parentd288eaad846f0e07e0141226f97d858dcf96cb78 (diff)
downloadvim-git-ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83.tar.gz
patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402
Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 11f5587e5..6683d2a3e 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -81,7 +81,7 @@ typedef struct syn_pattern
#define SYN_ITEMS(buf) ((synpat_T *)((buf)->b_syn_patterns.ga_data))
-#define NONE_IDX -2 // value of sp_sync_idx for "NONE"
+#define NONE_IDX (-2) // value of sp_sync_idx for "NONE"
/*
* Flags for b_syn_sync_flags:
@@ -207,8 +207,8 @@ typedef struct state_item
// pattern
} stateitem_T;
-#define KEYWORD_IDX -1 // value of si_idx for keywords
-#define ID_LIST_ALL (short *)-1 // valid of si_cont_list for containing all
+#define KEYWORD_IDX (-1) // value of si_idx for keywords
+#define ID_LIST_ALL ((short *)-1) // valid of si_cont_list for containing all
// but contained groups
#ifdef FEAT_CONCEAL