From 283e7455ffe32235eaf790ebd3c40c7970b7a833 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 4 Oct 2017 18:53:03 -0300 Subject: [PATCH] detail --- lparser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lparser.c b/lparser.c index 1831ea01..0637a0b7 100644 --- a/lparser.c +++ b/lparser.c @@ -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 */ } }