summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/ldo.c')
-rw-r--r--apps/plugins/lua/ldo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/lua/ldo.c b/apps/plugins/lua/ldo.c
index f303c744c7..43266de95e 100644
--- a/apps/plugins/lua/ldo.c
+++ b/apps/plugins/lua/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.38.1.3 2008/01/18 22:31:22 roberto Exp $ 2** $Id: ldo.c,v 2.38.1.4 2012/01/18 02:27:10 roberto Exp $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -217,6 +217,7 @@ static StkId adjust_varargs (lua_State *L, Proto *p, int actual) {
217 int nvar = actual - nfixargs; /* number of extra arguments */ 217 int nvar = actual - nfixargs; /* number of extra arguments */
218 lua_assert(p->is_vararg & VARARG_HASARG); 218 lua_assert(p->is_vararg & VARARG_HASARG);
219 luaC_checkGC(L); 219 luaC_checkGC(L);
220 luaD_checkstack(L, p->maxstacksize);
220 htab = luaH_new(L, nvar, 1); /* create `arg' table */ 221 htab = luaH_new(L, nvar, 1); /* create `arg' table */
221 for (i=0; i<nvar; i++) /* put extra arguments into `arg' table */ 222 for (i=0; i<nvar; i++) /* put extra arguments into `arg' table */
222 setobj2n(L, luaH_setnum(L, htab, i+1), L->top - nvar + i); 223 setobj2n(L, luaH_setnum(L, htab, i+1), L->top - nvar + i);