diff options
author | Peter Drahoš <drahosp@gmail.com> | 2012-03-09 15:29:03 +0100 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2012-03-09 15:29:03 +0100 |
commit | 1285f9a97c14116891c922b047594eb2175e5b1b (patch) | |
tree | 7282c20d4b36862a13a2f4fee812062331346058 /src/ldo.c | |
parent | 068edf316ea60ba0d32c4e50af3b9e1711876aa2 (diff) | |
download | lua-1285f9a97c14116891c922b047594eb2175e5b1b.tar.gz |
Lua 5.1.5 update using official release package.
Diffstat (limited to 'src/ldo.c')
-rw-r--r-- | src/ldo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.38.1.3 2008/01/18 22:31:22 roberto Exp $ +** $Id: ldo.c,v 2.38.1.4 2012/01/18 02:27:10 roberto Exp $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -217,6 +217,7 @@ static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { int nvar = actual - nfixargs; /* number of extra arguments */ lua_assert(p->is_vararg & VARARG_HASARG); luaC_checkGC(L); + luaD_checkstack(L, p->maxstacksize); htab = luaH_new(L, nvar, 1); /* create `arg' table */ for (i=0; i<nvar; i++) /* put extra arguments into `arg' table */ setobj2n(L, luaH_setnum(L, htab, i+1), L->top - nvar + i); |