aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.c
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-05-26 04:49:25 +0200
committerGitHub <noreply@github.com>2022-05-26 10:49:25 +0800
commit7b952793d5c46e862a9cdec3d6ac4762370296ed (patch)
tree987ea7d0174b4df4a6aa19356237b08308b0e744 /src/nvim/marktree.c
parentf246a929e7abec4aba00ceb68b1492f3be5877dc (diff)
downloadrneovim-7b952793d5c46e862a9cdec3d6ac4762370296ed.tar.gz
rneovim-7b952793d5c46e862a9cdec3d6ac4762370296ed.tar.bz2
rneovim-7b952793d5c46e862a9cdec3d6ac4762370296ed.zip
refactor: missing parenthesis may cause unexpected problems (#17443)
related vim-8.2.{4402,4639}
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r--src/nvim/marktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index c29e540214..03340a99d6 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -58,7 +58,7 @@
#define ID_INCR (((uint64_t)1) << 2)
-#define rawkey(itr) (itr->node->key[itr->i])
+#define rawkey(itr) ((itr)->node->key[(itr)->i])
static bool pos_leq(mtpos_t a, mtpos_t b)
{