From 722bdbe17d0192baf72978f88069d12a921e9bfb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 28 Sep 2017 13:53:29 -0300 Subject: no more 'getBMode'-'getCMode' (imprecise + we will need more space for op mode) + better control of op modes --- lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 7fd62f50..1831ea01 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.164 2017/08/14 18:33:14 roberto Exp roberto $ +** $Id: lparser.c,v 2.165 2017/09/13 19:50:08 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -1373,7 +1373,7 @@ static void forbody (LexState *ls, int base, int line, int nvars, int isnum) { luaK_patchtohere(fs, prep); luaK_codeABC(fs, OP_TFORCALL, base, 0, nvars); luaK_fixline(fs, line); - endfor = luaK_codeAsBx(fs, OP_TFORLOOP, base + 2, NO_JUMP); + endfor = luaK_codeABx(fs, OP_TFORLOOP, base + 2, 0); } fixforjump(fs, endfor, prep + 1, 1); luaK_fixline(fs, line); -- cgit v1.2.3-55-g6feb