commit 39fb3e0: [Minor] Sigh, another try to fix stupid condition

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Sep 21 16:14:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-09-21 17:10:56 +0100
URL: https://github.com/rspamd/rspamd/commit/39fb3e04c4599a0e1071400fb94ecb7036a60643 (HEAD -> master)

[Minor] Sigh, another try to fix stupid condition

---
 src/lua/lua_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;


More information about the Commits mailing list