aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lparser.c b/lparser.c
index b0dbb65c..27daa926 100644
--- a/lparser.c
+++ b/lparser.c
@@ -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}