summaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-22 12:16:46 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-22 12:16:46 -0200
commit4676f6599e04d4eaa78c050616e94994e6a36396 (patch)
tree94ef87b23d9008bee2fd34df7703c77181b4d655 /lparser.c
parent1d5b885437286a307a77b5d12756d73d374efd54 (diff)
downloadlua-github-4676f6599e04d4eaa78c050616e94994e6a36396.tar.gz
new macros 'isOT'/'isIT'
(plus exchanged parameters of OP_VARARG to make it similar to other 'isOT' instructions)
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 @@
/*
-** $Id: lparser.c,v 2.173 2017/12/18 12:33:54 roberto Exp roberto $
+** $Id: lparser.c,v 2.174 2017/12/18 17:49:31 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -977,7 +977,7 @@ static void simpleexp (LexState *ls, expdesc *v) {
int lastparam = fs->f->numparams;
check_condition(ls, fs->f->is_vararg,
"cannot use '...' outside a vararg function");
- init_exp(v, VVARARG, luaK_codeABC(fs, OP_VARARG, 0, 1, lastparam));
+ init_exp(v, VVARARG, luaK_codeABC(fs, OP_VARARG, 0, lastparam, 1));
break;
}
case '{': { /* constructor */