aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index 6317a788..e99b33ff 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.173 2017/12/18 12:33:54 roberto Exp roberto $ 2** $Id: lparser.c,v 2.174 2017/12/18 17:49:31 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -977,7 +977,7 @@ static void simpleexp (LexState *ls, expdesc *v) {
977 int lastparam = fs->f->numparams; 977 int lastparam = fs->f->numparams;
978 check_condition(ls, fs->f->is_vararg, 978 check_condition(ls, fs->f->is_vararg,
979 "cannot use '...' outside a vararg function"); 979 "cannot use '...' outside a vararg function");
980 init_exp(v, VVARARG, luaK_codeABC(fs, OP_VARARG, 0, 1, lastparam)); 980 init_exp(v, VVARARG, luaK_codeABC(fs, OP_VARARG, 0, lastparam, 1));
981 break; 981 break;
982 } 982 }
983 case '{': { /* constructor */ 983 case '{': { /* constructor */