summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_thread_pool.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-01 12:44:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-01 12:44:42 +0100
commitf0d72001587ab4027a90abd89d1895b73754f010 (patch)
tree0a806e654e4c6ef2a948b9dd6ae7db9164f71c31 /src/lua/lua_thread_pool.c
parent1e6065f76c4bd369e6ac241b3eae7f964f8d283e (diff)
downloadrspamd-f0d72001587ab4027a90abd89d1895b73754f010.tar.gz
rspamd-f0d72001587ab4027a90abd89d1895b73754f010.zip
[Minor] Restore Lua 5.2 compatibility
Issue: #2826 Closes: #2826
Diffstat (limited to 'src/lua/lua_thread_pool.c')
-rw-r--r--src/lua/lua_thread_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_thread_pool.c b/src/lua/lua_thread_pool.c
index d10f64579..3d289a12e 100644
--- a/src/lua/lua_thread_pool.c
+++ b/src/lua/lua_thread_pool.c
@@ -236,7 +236,7 @@ static gint
lua_do_resume_full (lua_State *L, gint narg, const gchar *loc)
{
msg_debug_lua_threads ("%s: lua_do_resume_full", loc);
-#if LUA_VERSION_NUM < 503
+#if LUA_VERSION_NUM < 502
return lua_resume (L, narg);
#else
return lua_resume (L, NULL, narg);