1. Harald Klimach
  2. aotus

Source

aotus / external / lua-5.2.2 / src / ldo.c

Diff from to

File external/lua-5.2.2/src/ldo.c

  • Ignore whitespace
     case LUA_TLCL: {  /* Lua function: prepare its call */
       StkId base;
       Proto *p = clLvalue(func)->p;
-      luaD_checkstack(L, p->maxstacksize);
+      luaD_checkstack(L, p->maxstacksize + p->numparams);
       func = restorestack(L, funcr);
       n = cast_int(L->top - func) - 1;  /* number of real arguments */
       for (; n < p->numparams; n++)