From: Vsevolod Stakhov Date: Mon, 21 Sep 2020 16:10:56 +0000 (+0100) Subject: [Minor] Sigh, another try to fix stupid condition X-Git-Tag: 2.6~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39fb3e04c4599a0e1071400fb94ecb7036a60643;p=thirdparty%2Frspamd.git [Minor] Sigh, another try to fix stupid condition --- diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index fad82cf659..c63b352043 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -47,7 +47,7 @@ luaL_register (lua_State *L, const gchar *name, const struct luaL_reg *methods) #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 501 /* Special hack to work with moonjit of specific version */ -#if !defined(MOONJIT_VERSION) || (!defined(LUAJIT_VERSION_NUM) || LUAJIT_VERSION_NUM != 20200) +#if !defined(MOONJIT_VERSION) && (!defined(LUAJIT_VERSION_NUM) || LUAJIT_VERSION_NUM != 20200) static inline int lua_absindex (lua_State *L, int i) { if (i < 0 && i > LUA_REGISTRYINDEX) i += lua_gettop(L) + 1;