diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-20 14:57:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-20 14:57:08 -0300 |
| commit | eb822c314a4e369006b4535f12ca63ea717b5e67 (patch) | |
| tree | bc80830c3bc640f2fec141a968c69fcdd712a3c0 /lparser.c | |
| parent | ab7aceb9805e938b937bcf7e66e4160b42fbefaf (diff) | |
| download | lua-github-eb822c314a4e369006b4535f12ca63ea717b5e67.tar.gz | |
macros to do jumps
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.110 2000/08/22 17:44:17 roberto Exp roberto $ +** $Id: lparser.c,v 1.111 2000/08/31 14:08:27 roberto Exp roberto $ ** LL(1) Parser and code generator for Lua ** See Copyright Notice in lua.h */ @@ -841,8 +841,8 @@ static void forbody (LexState *ls, int nvar, OpCode prepfor, OpCode loopfor) { check(ls, TK_DO); adjustlocalvars(ls, nvar); /* scope for control variables */ block(ls); - luaK_patchlist(fs, prep, luaK_getlabel(fs)); luaK_patchlist(fs, luaK_code1(fs, loopfor, NO_JUMP), blockinit); + luaK_patchlist(fs, prep, luaK_getlabel(fs)); removelocalvars(ls, nvar); } |
