mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4402: missing parenthesis may cause unexpected problems
Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user