PKGBUILDs/extra/lua/lua-5.1.3-official-patch2.diff
2009-10-09 21:23:22 -05:00

11 lines
381 B
Diff

--- src/lbaselib.c (old)
+++ src/lbaselib.c (new)
@@ -526,7 +526,7 @@
status = lua_resume(co, narg);
if (status == 0 || status == LUA_YIELD) {
int nres = lua_gettop(co);
- if (!lua_checkstack(L, nres))
+ if (!lua_checkstack(L, nres + 1))
luaL_error(L, "too many results to resume");
lua_xmove(co, L, nres); /* move yielded values */
return nres;