]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/lua/lib/contrib/src/ldo.c
update
[l4.git] / l4 / pkg / lua / lib / contrib / src / ldo.c
index fe7fae2b808431cc86f4f0fb1db790badcc10a85..b23f3ab0cc29f6ca1dbed5e3bb6dc6eac91e4dc8 100644 (file)
@@ -274,7 +274,7 @@ int luaD_precall (lua_State *L, StkId func, int nresults) {
     CallInfo *ci;
     StkId st, base;
     Proto *p = cl->p;
-    luaD_checkstack(L, p->maxstacksize);
+    luaD_checkstack(L, p->maxstacksize + p->numparams);
     func = restorestack(L, funcr);
     if (!p->is_vararg) {  /* no varargs? */
       base = func + 1;