aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
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/eval/funcs.c
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/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 92672be8d0..f7d9f76534 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -6550,7 +6550,7 @@ static inline uint32_t shuffle_xoshiro128starstar(uint32_t *const x, uint32_t *c
uint32_t *const z, uint32_t *const w)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_ALWAYS_INLINE
{
-#define ROTL(x, k) ((x << k) | (x >> (32 - k)))
+#define ROTL(x, k) (((x) << (k)) | ((x) >> (32 - (k))))
const uint32_t result = ROTL(*y * 5, 7) * 9;
const uint32_t t = *y << 9;
*z ^= *x;