void-packages/srcpkgs/lua54-lgi/patches/lua54.patch

15 lines
391 B
Diff
Raw Normal View History

--- lgi/callable.c
+++ lgi/callable.c
@@ -1233,7 +1233,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg)
}
else
{
-#if LUA_VERSION_NUM >= 502
+#if LUA_VERSION_NUM > 503
+ int nres;
+ res = lua_resume (L, NULL, npos, &nres);
+#elif LUA_VERSION_NUM >= 502
res = lua_resume (L, NULL, npos);
#else
res = lua_resume (L, npos);