From e6efd7f6941eb49dfaca31ba10f4f717ce6a5792 Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 9 Jun 2024 14:10:15 -0400 Subject: [PATCH] Fix for gcc misleading indentation in lua-engine.cpp. --- src/lua-engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ^=)