summaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-04 17:42:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-04 17:42:28 -0300
commit65f4a0f636eede0f026d0205ac929bc5a56f8b9c (patch)
tree28ad2176e61cb97c808f61ecf6ad2d46cef8463c /lparser.c
parent12acca7bd8168e12a09c345416ffd848e48b9ba4 (diff)
downloadlua-65f4a0f636eede0f026d0205ac929bc5a56f8b9c.tar.gz
lua-65f4a0f636eede0f026d0205ac929bc5a56f8b9c.tar.bz2
lua-65f4a0f636eede0f026d0205ac929bc5a56f8b9c.zip
no more compatibility code for traversing tables
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index e134e982..afb07061 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.22 2005/04/29 12:43:47 roberto Exp roberto $ 2** $Id: lparser.c,v 2.23 2005/05/04 16:36:23 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1070,7 +1070,7 @@ static void forbody (LexState *ls, int base, int line, int nvars, int isnum) {
1070 int prep, endfor; 1070 int prep, endfor;
1071 adjustlocalvars(ls, 3); /* control variables */ 1071 adjustlocalvars(ls, 3); /* control variables */
1072 checknext(ls, TK_DO); 1072 checknext(ls, TK_DO);
1073 prep = luaK_codeAsBx(fs, (isnum ? OP_FORPREP : OP_TFORPREP), base, NO_JUMP); 1073 prep = isnum ? luaK_codeAsBx(fs, OP_FORPREP, base, NO_JUMP) : luaK_jump(fs);
1074 enterblock(fs, &bl, 0); /* scope for declared variables */ 1074 enterblock(fs, &bl, 0); /* scope for declared variables */
1075 adjustlocalvars(ls, nvars); 1075 adjustlocalvars(ls, nvars);
1076 luaK_reserveregs(fs, nvars); 1076 luaK_reserveregs(fs, nvars);