You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
470 B
13 lines
470 B
diff -uNr lua-5.1.5.orig/src/ldo.c lua-5.1.5/src/ldo.c
|
|
--- lua-5.1.5.orig/src/ldo.c 2016-11-28 20:04:13.177047928 +0100
|
|
+++ lua-5.1.5/src/ldo.c 2016-11-28 20:07:15.170432525 +0100
|
|
@@ -274,7 +274,7 @@
|
|
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;
|