SHA256
12
0
forked from pool/lua-lgi
lua-lgi/lua54.patch

17 lines
479 B
Diff

diff --git a/lgi/callable.c b/lgi/callable.c
index e96d3af..3234b64 100644
--- a/lgi/callable.c
+++ b/lgi/callable.c
@@ -1355,7 +1355,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg)
}
else
{
-#if LUA_VERSION_NUM >= 502
+#if LUA_VERSION_NUM >= 504
+ int nresults;
+ res = lua_resume (L, NULL, npos, &nresults);
+#elif LUA_VERSION_NUM >= 502
res = lua_resume (L, NULL, npos);
#else
res = lua_resume (L, npos);