diff options
author | Brian Leung <leungbk@posteo.net> | 2022-04-03 01:37:28 -0700 |
---|---|---|
committer | Brian Leung <leungbk@posteo.net> | 2022-04-03 15:57:07 -0700 |
commit | 271bb32855853b011fceaf0ad2f829bce66b2a19 (patch) | |
tree | a13efbe2922f6d5beccee30631ffdfe5f38aa90a /src/nvim/macros.h | |
parent | d73bf3138a802bb6c1c654cd913d4e91932287f8 (diff) | |
download | rneovim-271bb32855853b011fceaf0ad2f829bce66b2a19.tar.gz rneovim-271bb32855853b011fceaf0ad2f829bce66b2a19.tar.bz2 rneovim-271bb32855853b011fceaf0ad2f829bce66b2a19.zip |
vim-patch:8.2.4639: not sufficient parenthesis in preprocessor macros
Problem: Not sufficient parenthesis in preprocessor macros.
Solution: Add more parenthesis.
https://github.com/vim/vim/commit/9dac9b1751dd43c02470cc6a2aecaeea27abcc80
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r-- | src/nvim/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index d5611f587b..5017e286d3 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -103,7 +103,7 @@ // MB_PTR_BACK(): backup a pointer to the previous character, taking care of // multi-byte characters if needed. Only use with "p" > "s" ! #define MB_PTR_BACK(s, p) \ - (p -= utf_head_off((char_u *)s, (char_u *)p - 1) + 1) + (p -= utf_head_off((char_u *)(s), (char_u *)(p) - 1) + 1) // MB_CHAR2BYTES(): convert character to bytes and advance pointer to bytes #define MB_CHAR2BYTES(c, b) ((b) += utf_char2bytes((c), (b))) |