From 65f4a0f636eede0f026d0205ac929bc5a56f8b9c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 4 May 2005 17:42:28 -0300 Subject: no more compatibility code for traversing tables --- lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index e134e982..afb07061 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.22 2005/04/29 12:43:47 roberto Exp roberto $ +** $Id: lparser.c,v 2.23 2005/05/04 16:36:23 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -1070,7 +1070,7 @@ static void forbody (LexState *ls, int base, int line, int nvars, int isnum) { int prep, endfor; adjustlocalvars(ls, 3); /* control variables */ checknext(ls, TK_DO); - prep = luaK_codeAsBx(fs, (isnum ? OP_FORPREP : OP_TFORPREP), base, NO_JUMP); + prep = isnum ? luaK_codeAsBx(fs, OP_FORPREP, base, NO_JUMP) : luaK_jump(fs); enterblock(fs, &bl, 0); /* scope for declared variables */ adjustlocalvars(ls, nvars); luaK_reserveregs(fs, nvars); -- cgit v1.2.3-55-g6feb