diff options
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 1.68 2000/03/10 18:37:44 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.69 2000/03/13 20:37:16 roberto Exp roberto $ |
3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -858,7 +858,7 @@ static void whilestat (LexState *ls, int line) { | |||
858 | luaK_fixjump(fs, while_init, cond_init); | 858 | luaK_fixjump(fs, while_init, cond_init); |
859 | /* correct `v' and copy condition to new position */ | 859 | /* correct `v' and copy condition to new position */ |
860 | if (v.u.l.t != NO_JUMP) v.u.l.t += cond_init-while_init; | 860 | if (v.u.l.t != NO_JUMP) v.u.l.t += cond_init-while_init; |
861 | for (i=0; i<cond_size; i++) luaK_primitivecode(fs, buffer[i]); | 861 | for (i=0; i<cond_size; i++) luaK_code(fs, buffer[i], 0); |
862 | luaK_patchlist(fs, v.u.l.t, loopentry); | 862 | luaK_patchlist(fs, v.u.l.t, loopentry); |
863 | luaK_getlabel(fs); /* mark possible jump to this point */ | 863 | luaK_getlabel(fs); /* mark possible jump to this point */ |
864 | } | 864 | } |