summaryrefslogtreecommitdiff
path: root/src/gui.h
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-03-27 20:05:17 +0100
committerBram Moolenaar <Bram@vim.org>2022-03-27 20:05:17 +0100
commit9dac9b1751dd43c02470cc6a2aecaeea27abcc80 (patch)
treeb4f2ed0cd629c7773bbb6fee0ed6d0ec59e8eeaf /src/gui.h
parent3e559cd88486ffab6b6fb4e0921b4600d137a617 (diff)
downloadvim-git-9dac9b1751dd43c02470cc6a2aecaeea27abcc80.tar.gz
patch 8.2.4639: not sufficient parenthesis in preprocessor macros
Problem: Not sufficient parenthesis in preprocessor macros. Solution: Add more parenthesis. (closes #10031)
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui.h b/src/gui.h
index bb8a3d905..0d503ae58 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -100,7 +100,7 @@
#endif
// Indices for arrays of scrollbars
-#define SBAR_NONE -1
+#define SBAR_NONE (-1)
#define SBAR_LEFT 0
#define SBAR_RIGHT 1
#define SBAR_BOTTOM 2
@@ -198,10 +198,10 @@ typedef struct GuiScrollbar
typedef long guicolor_T; // handle for a GUI color; for X11 this should
// be "Pixel", but that's an unsigned and we
// need a signed value
-#define INVALCOLOR (guicolor_T)-11111 // number for invalid color; on 32 bit
+#define INVALCOLOR ((guicolor_T)-11111) // number for invalid color; on 32 bit
// displays there is a tiny chance this is an
// actual color
-#define CTERMCOLOR (guicolor_T)-11110 // only used for cterm.bg_rgb and
+#define CTERMCOLOR ((guicolor_T)-11110) // only used for cterm.bg_rgb and
// cterm.fg_rgb: use cterm color
#ifdef FEAT_GUI_GTK