diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-03 17:17:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-03 17:17:46 +0000 |
commit | 25a8f48d565a0450aed3417c88dbeeecdad11532 (patch) | |
tree | 164c75979afb9cfa21d290f36f2cfaf5fde003e8 /src | |
parent | 185e38c9644cbc6e31933aef87ddaf0508e1f01a (diff) | |
download | rspamd-25a8f48d565a0450aed3417c88dbeeecdad11532.tar.gz rspamd-25a8f48d565a0450aed3417c88dbeeecdad11532.zip |
[Minor] More Lua 5.4 compatibility
Issue: #3656
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_thread_pool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_thread_pool.c b/src/lua/lua_thread_pool.c index 1fa584c51..8220bb3ff 100644 --- a/src/lua/lua_thread_pool.c +++ b/src/lua/lua_thread_pool.c @@ -239,7 +239,11 @@ lua_do_resume_full (lua_State *L, gint narg, const gchar *loc) #if LUA_VERSION_NUM < 502 return lua_resume (L, narg); #else + #if LUA_VERSION_NUM >= 504 + return lua_resume (L, from, nargs, NULL); + #else return lua_resume (L, NULL, narg); + #endif #endif } |