aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-09-28 13:53:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-09-28 13:53:29 -0300
commit722bdbe17d0192baf72978f88069d12a921e9bfb (patch)
tree78da619d4799721e67a760bf4220b568f636cb86 /lparser.c
parent1b100335839e13021b4731f0407b87e4f7544dc0 (diff)
downloadlua-722bdbe17d0192baf72978f88069d12a921e9bfb.tar.gz
lua-722bdbe17d0192baf72978f88069d12a921e9bfb.tar.bz2
lua-722bdbe17d0192baf72978f88069d12a921e9bfb.zip
no more 'getBMode'-'getCMode' (imprecise + we will need more space
for op mode) + better control of op modes
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 7fd62f50..1831ea01 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.164 2017/08/14 18:33:14 roberto Exp roberto $ 2** $Id: lparser.c,v 2.165 2017/09/13 19:50:08 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*/
@@ -1373,7 +1373,7 @@ static void forbody (LexState *ls, int base, int line, int nvars, int isnum) {
1373 luaK_patchtohere(fs, prep); 1373 luaK_patchtohere(fs, prep);
1374 luaK_codeABC(fs, OP_TFORCALL, base, 0, nvars); 1374 luaK_codeABC(fs, OP_TFORCALL, base, 0, nvars);
1375 luaK_fixline(fs, line); 1375 luaK_fixline(fs, line);
1376 endfor = luaK_codeAsBx(fs, OP_TFORLOOP, base + 2, NO_JUMP); 1376 endfor = luaK_codeABx(fs, OP_TFORLOOP, base + 2, 0);
1377 } 1377 }
1378 fixforjump(fs, endfor, prep + 1, 1); 1378 fixforjump(fs, endfor, prep + 1, 1);
1379 luaK_fixline(fs, line); 1379 luaK_fixline(fs, line);