diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-01 12:44:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-01 12:44:42 +0100 |
commit | f0d72001587ab4027a90abd89d1895b73754f010 (patch) | |
tree | 0a806e654e4c6ef2a948b9dd6ae7db9164f71c31 /test | |
parent | 1e6065f76c4bd369e6ac241b3eae7f964f8d283e (diff) | |
download | rspamd-f0d72001587ab4027a90abd89d1895b73754f010.tar.gz rspamd-f0d72001587ab4027a90abd89d1895b73754f010.zip |
[Minor] Restore Lua 5.2 compatibility
Issue: #2826
Closes: #2826
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_lua_pcall_vs_resume_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rspamd_lua_pcall_vs_resume_test.c b/test/rspamd_lua_pcall_vs_resume_test.c index 8252dffb0..6cb05fd38 100644 --- a/test/rspamd_lua_pcall_vs_resume_test.c +++ b/test/rspamd_lua_pcall_vs_resume_test.c @@ -53,7 +53,7 @@ test_resume(lua_State *L, gint function_call) for (i = 0; i < N; i ++) { lua_rawgeti (L, LUA_REGISTRYINDEX, function_call); -#if LUA_VERSION_NUM < 503 +#if LUA_VERSION_NUM < 502 lua_resume (L, 0); #else lua_resume (L, NULL, 0); @@ -79,7 +79,7 @@ test_resume_get_thread(gint function_call) ent = lua_thread_pool_get_for_config (rspamd_main->cfg); lua_rawgeti (ent->lua_state, LUA_REGISTRYINDEX, function_call); -#if LUA_VERSION_NUM < 503 +#if LUA_VERSION_NUM < 502 lua_resume (ent->lua_state, 0); #else lua_resume (ent->lua_state, NULL, 0); @@ -107,7 +107,7 @@ test_resume_get_new_thread(gint function_call) ent = lua_thread_pool_get_for_task (rspamd_main->cfg->lua_thread_pool); lua_rawgeti (ent->lua_state, LUA_REGISTRYINDEX, function_call); -#if LUA_VERSION_NUM < 503 +#if LUA_VERSION_NUM < 502 lua_resume (ent->lua_state, 0); #else lua_resume (ent->lua_state, NULL, 0); |