From: Vsevolod Stakhov Date: Sun, 8 Mar 2015 23:45:29 +0000 (+0000) Subject: Use portable macro to get global variable. X-Git-Tag: 0.9.0~533 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dabf6b6e482e06b5b51177fa50e903c231c16b2f;p=rspamd.git Use portable macro to get global variable. --- diff --git a/test/rspamd_lua_test.c b/test/rspamd_lua_test.c index bdc23e91c..b129f1b51 100644 --- a/test/rspamd_lua_test.c +++ b/test/rspamd_lua_test.c @@ -35,7 +35,7 @@ traceback (lua_State *L) return 1; } - lua_getfield (L, LUA_GLOBALSINDEX, "debug"); + lua_getglobal (L, "debug"); if (!lua_istable(L, -1)) { lua_pop(L, 1);