aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-21 17:10:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-21 17:10:56 +0100
commit39fb3e04c4599a0e1071400fb94ecb7036a60643 (patch)
tree68caac3b0c3144efbef59a1a33418d10595b495f /src/lua
parent2c0c086cc150c26ac0a4271d97f662f4c365696c (diff)
downloadrspamd-39fb3e04c4599a0e1071400fb94ecb7036a60643.tar.gz
rspamd-39fb3e04c4599a0e1071400fb94ecb7036a60643.zip
[Minor] Sigh, another try to fix stupid condition
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index fad82cf65..c63b35204 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;