aboutsummaryrefslogtreecommitdiff
path: root/lib/lua/src/ldo.c
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2018-05-30 16:30:44 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-05-30 16:30:44 +0200
commitddd03c38a418c9f2ed204bf4fa68fd1d5feac11f (patch)
tree37b5d8f02fe8f1de111a9d67b4c128edc9d656c5 /lib/lua/src/ldo.c
parente3e98f935687ba60512889a5ddc62010216aa331 (diff)
downloadminetest-ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f.tar.gz
minetest-ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f.tar.bz2
minetest-ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f.zip
Update embedded Lua to 5.1.5 (#7387)
Diffstat (limited to 'lib/lua/src/ldo.c')
-rw-r--r--lib/lua/src/ldo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lua/src/ldo.c b/lib/lua/src/ldo.c
index 8de05f728..d1bf786cb 100644
--- a/lib/lua/src/ldo.c
+++ b/lib/lua/src/ldo.c
@@ -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);