diff options
author | Brian Leung <leungbk@posteo.net> | 2022-04-03 02:36:01 -0700 |
---|---|---|
committer | Brian Leung <leungbk@posteo.net> | 2022-04-03 16:11:23 -0700 |
commit | 69e11b58b4db0952f11a5ff85aa7150b5f5b8db8 (patch) | |
tree | 2c10f1348a50480eacf10a003c49e6f16a5f8049 /src/nvim/charset.c | |
parent | 271bb32855853b011fceaf0ad2f829bce66b2a19 (diff) | |
download | rneovim-69e11b58b4db0952f11a5ff85aa7150b5f5b8db8.tar.gz rneovim-69e11b58b4db0952f11a5ff85aa7150b5f5b8db8.tar.bz2 rneovim-69e11b58b4db0952f11a5ff85aa7150b5f5b8db8.zip |
vim-patch:8.2.4402: missing parenthesis may cause unexpected problems
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros.
https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 986a89b0a5..ec1866e9cc 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -425,9 +425,9 @@ char_u *str_foldcase(char_u *str, int orglen, char_u *buf, int buflen) int len = orglen; #define GA_CHAR(i) ((char_u *)ga.ga_data)[i] -#define GA_PTR(i) ((char_u *)ga.ga_data + i) +#define GA_PTR(i) ((char_u *)ga.ga_data + (i)) #define STR_CHAR(i) (buf == NULL ? GA_CHAR(i) : buf[i]) -#define STR_PTR(i) (buf == NULL ? GA_PTR(i) : buf + i) +#define STR_PTR(i) (buf == NULL ? GA_PTR(i) : buf + (i)) // Copy "str" into "buf" or allocated memory, unmodified. if (buf == NULL) { |