mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
refactor: missing parenthesis may cause unexpected problems (#17443)
related vim-8.2.{4402,4639}
This commit is contained in:
@@ -414,9 +414,9 @@ static inline int parse_json_string(const char *const buf, const size_t buf_len,
|
||||
bool hasnul = false;
|
||||
#define PUT_FST_IN_PAIR(fst_in_pair, str_end) \
|
||||
do { \
|
||||
if (fst_in_pair != 0) { \
|
||||
str_end += utf_char2bytes(fst_in_pair, str_end); \
|
||||
fst_in_pair = 0; \
|
||||
if ((fst_in_pair) != 0) { \
|
||||
(str_end) += utf_char2bytes(fst_in_pair, (str_end)); \
|
||||
(fst_in_pair) = 0; \
|
||||
} \
|
||||
} while (0)
|
||||
for (const char *t = s; t < p; t++) {
|
||||
|
Reference in New Issue
Block a user