diff options
author | kylo252 <59826753+kylo252@users.noreply.github.com> | 2022-02-16 19:24:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-16 19:24:07 +0000 |
commit | ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83 (patch) | |
tree | 4982335c2afa3ef8515860dabea038acbc2af406 /src/drawscreen.c | |
parent | d288eaad846f0e07e0141226f97d858dcf96cb78 (diff) | |
download | vim-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/drawscreen.c')
-rw-r--r-- | src/drawscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c index 6cae313fa..3a157e901 100644 --- a/src/drawscreen.c +++ b/src/drawscreen.c @@ -1112,10 +1112,10 @@ fold_line( # define RL_MEMSET(p, v, l) \ do { \ if (wp->w_p_rl) \ - for (ri = 0; ri < l; ++ri) \ + for (ri = 0; ri < (l); ++ri) \ ScreenAttrs[off + (wp->w_width - (p) - (l)) + ri] = v; \ else \ - for (ri = 0; ri < l; ++ri) \ + for (ri = 0; ri < (l); ++ri) \ ScreenAttrs[off + (p) + ri] = v; \ } while (0) #else |