PKGBUILDs/extra/lua/lua-5.1.3-official-patch2.diff

12 lines
381 B
Diff
Raw Normal View History

2009-10-10 02:23:22 +00:00
--- 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;