diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-09-28 13:53:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-09-28 13:53:29 -0300 |
commit | 722bdbe17d0192baf72978f88069d12a921e9bfb (patch) | |
tree | 78da619d4799721e67a760bf4220b568f636cb86 /lparser.c | |
parent | 1b100335839e13021b4731f0407b87e4f7544dc0 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |