Unverified Commit c81b5e55 authored by Ozan Tezcan's avatar Ozan Tezcan Committed by GitHub
Browse files

Fix Lua compile warning (#10805)

Apparently, GCC 11.2.0 has a new fancy warning for misleading indentations.
It prints a warning when BRET(b) is on the same line as the loop.
parent df558618
...@@ -98,7 +98,8 @@ static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) } ...@@ -98,7 +98,8 @@ static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) }
#define BIT_OP(func, opr) \ #define BIT_OP(func, opr) \
static int func(lua_State *L) { int i; UBits b = barg(L, 1); \ 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_band, &=)
BIT_OP(bit_bor, |=) BIT_OP(bit_bor, |=)
BIT_OP(bit_bxor, ^=) BIT_OP(bit_bxor, ^=)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment