diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-10-04 18:53:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-10-04 18:53:03 -0300 |
commit | 283e7455ffe32235eaf790ebd3c40c7970b7a833 (patch) | |
tree | 31d666ecd1728524bb665492b0d1bea7a16da9bd /lparser.c | |
parent | 8fbe9e3470295e3b70273fa32ef56459cc0b5201 (diff) | |
download | lua-283e7455ffe32235eaf790ebd3c40c7970b7a833.tar.gz lua-283e7455ffe32235eaf790ebd3c40c7970b7a833.tar.bz2 lua-283e7455ffe32235eaf790ebd3c40c7970b7a833.zip |
detail
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.165 2017/09/13 19:50:08 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.166 2017/09/28 16:53:29 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 | */ |
@@ -1564,8 +1564,9 @@ static void exprstat (LexState *ls) { | |||
1564 | assignment(ls, &v, 1); | 1564 | assignment(ls, &v, 1); |
1565 | } | 1565 | } |
1566 | else { /* stat -> func */ | 1566 | else { /* stat -> func */ |
1567 | Instruction *inst = &getinstruction(fs, &v.v); | ||
1567 | check_condition(ls, v.v.k == VCALL, "syntax error"); | 1568 | check_condition(ls, v.v.k == VCALL, "syntax error"); |
1568 | SETARG_C(getinstruction(fs, &v.v), 1); /* call statement uses no results */ | 1569 | SETARG_C(*inst, 1); /* call statement uses no results */ |
1569 | } | 1570 | } |
1570 | } | 1571 | } |
1571 | 1572 | ||