aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ltm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltm.c b/ltm.c
index fce6245c..c943bc7b 100644
--- a/ltm.c
+++ b/ltm.c
@@ -261,7 +261,7 @@ void luaT_getvarargs (lua_State *L, CallInfo *ci, StkId where, int wanted) {
261 int nextra = ci->u.l.nextraargs; 261 int nextra = ci->u.l.nextraargs;
262 if (wanted < 0) { 262 if (wanted < 0) {
263 wanted = nextra; /* get all extra arguments available */ 263 wanted = nextra; /* get all extra arguments available */
264 checkstackGCp(L, nextra, where); /* ensure stack space */ 264 checkstackp(L, nextra, where); /* ensure stack space */
265 L->top.p = where + nextra; /* next instruction will need top */ 265 L->top.p = where + nextra; /* next instruction will need top */
266 } 266 }
267 for (i = 0; i < wanted && i < nextra; i++) 267 for (i = 0; i < wanted && i < nextra; i++)