Skip to content

Commit

Permalink
Fix for gcc misleading indentation in lua-engine.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
thor2016 committed Jun 9, 2024
1 parent eecb2e7 commit e6efd7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lua-engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, ^=)
Expand Down

0 comments on commit e6efd7f

Please sign in to comment.