1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
This commit is contained in:
Roberto Ierusalimschy 2017-10-04 18:53:03 -03:00
parent 8fbe9e3470
commit 283e7455ff

View File

@ -1,5 +1,5 @@
/*
** $Id: lparser.c,v 2.165 2017/09/13 19:50:08 roberto Exp roberto $
** $Id: lparser.c,v 2.166 2017/09/28 16:53:29 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@ -1564,8 +1564,9 @@ static void exprstat (LexState *ls) {
assignment(ls, &v, 1);
}
else { /* stat -> func */
Instruction *inst = &getinstruction(fs, &v.v);
check_condition(ls, v.v.k == VCALL, "syntax error");
SETARG_C(getinstruction(fs, &v.v), 1); /* call statement uses no results */
SETARG_C(*inst, 1); /* call statement uses no results */
}
}