aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/lua_bitop.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal@wireshark.org>2021-04-28 15:08:46 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-04-28 20:12:19 +0000
commitebdb6784fade44a4b1e1d579bb1e51dc5310a707 (patch)
tree24d0760b16e6e58f85f9dc8d0e49dd788e1d2c44 /epan/wslua/lua_bitop.c
parent3bfe597f5b02289378bab2a7e273cb0ba907cf00 (diff)
wslua: fix compilation with gcc 11
Fixes the misleading-indentation warning
Diffstat (limited to 'epan/wslua/lua_bitop.c')
-rw-r--r--epan/wslua/lua_bitop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/lua_bitop.c b/epan/wslua/lua_bitop.c
index c951397857..2f3c3eeb8d 100644
--- a/epan/wslua/lua_bitop.c
+++ b/epan/wslua/lua_bitop.c
@@ -76,7 +76,7 @@ static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) }
#define BIT_OP(func, opr) \
static int func(lua_State *L) { int i; UBits b = barg(L, 1); \
- for (i = lua_gettop(L); i > 1; i--) b opr barg(L, i); BRET(b) }
+ for (i = lua_gettop(L); i > 1; i--) { b opr barg(L, i); } BRET(b) }
BIT_OP(bit_band, &=)
BIT_OP(bit_bor, |=)
BIT_OP(bit_bxor, ^=)