From 25a8f48d565a0450aed3417c88dbeeecdad11532 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 3 Mar 2021 17:17:46 +0000 Subject: [Minor] More Lua 5.4 compatibility Issue: #3656 --- src/lua/lua_thread_pool.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 } -- cgit v1.2.3