diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index c9711d85..a230fcba 100644 --- a/src/lua-engine.cpp +++ b/src/lua-engine.cpp @@ -5825,8 +5825,8 @@ static int bit_tobit(lua_State *L) { BRET(barg(L, 1)) } 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) } + static int func(lua_State *L) { UBits b = barg(L, 1); \ + for (int 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, ^=)