aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.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/debugger.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/debugger.c')
-rw-r--r--src/nvim/debugger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 16e96431e2..30d6ea2505 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -444,7 +444,7 @@ bool dbg_check_skipped(exarg_T *eap)
static garray_T dbg_breakp = { 0, 0, sizeof(struct debuggy), 4, NULL };
#define BREAKP(idx) (((struct debuggy *)dbg_breakp.ga_data)[idx])
-#define DEBUGGY(gap, idx) (((struct debuggy *)gap->ga_data)[idx])
+#define DEBUGGY(gap, idx) (((struct debuggy *)(gap)->ga_data)[idx])
static int last_breakp = 0; // nr of last defined breakpoint
// Profiling uses file and func names similar to breakpoints.