diff options
-rw-r--r-- | lparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1822,8 +1822,9 @@ static void exprstat (LexState *ls) { | |||
1822 | restassign(ls, &v, 1); | 1822 | restassign(ls, &v, 1); |
1823 | } | 1823 | } |
1824 | else { /* stat -> func */ | 1824 | else { /* stat -> func */ |
1825 | Instruction *inst = &getinstruction(fs, &v.v); | 1825 | Instruction *inst; |
1826 | check_condition(ls, v.v.k == VCALL, "syntax error"); | 1826 | check_condition(ls, v.v.k == VCALL, "syntax error"); |
1827 | inst = &getinstruction(fs, &v.v); | ||
1827 | SETARG_C(*inst, 1); /* call statement uses no results */ | 1828 | SETARG_C(*inst, 1); /* call statement uses no results */ |
1828 | } | 1829 | } |
1829 | } | 1830 | } |