aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-04 07:54:34 +0800
committerGitHub <noreply@github.com>2022-04-04 07:54:34 +0800
commit4e0a825262ffb2857def79fe1db5c7830c484b5b (patch)
tree363e9a7044ab99000c9efeefe026d467f4ab3512 /src/nvim/os
parenta93b55273f76e5fe23f614e691536435999f4452 (diff)
parent33909b65640a9884f7716bb2d6d73cb75931135b (diff)
downloadrneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.tar.gz
rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.tar.bz2
rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.zip
Merge pull request #17987 from leungbk/vim-patch-4402
vim-patch:8.2.{4639,4402}: missing parenthesis may cause unexpected problems
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/win_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h
index efef77be7b..1ae86d6bbe 100644
--- a/src/nvim/os/win_defs.h
+++ b/src/nvim/os/win_defs.h
@@ -36,7 +36,7 @@
// Windows defines a RGB macro that produces 0x00bbggrr color values for use
// with GDI. Our macro is different, and we don't use GDI.
// Duplicated from macros.h to avoid include-order sensitivity.
-#define RGB_(r, g, b) ((r << 16) | (g << 8) | b)
+#define RGB_(r, g, b) (((r) << 16) | ((g) << 8) | (b))
#ifdef _MSC_VER
# ifndef inline