diff options
Diffstat (limited to '')
| -rw-r--r-- | lparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1614,7 +1614,6 @@ static void repeatstat (LexState *ls, int line) { | |||
| 1614 | statlist(ls); | 1614 | statlist(ls); |
| 1615 | check_match(ls, TK_UNTIL, TK_REPEAT, line); | 1615 | check_match(ls, TK_UNTIL, TK_REPEAT, line); |
| 1616 | condexit = cond(ls); /* read condition (inside scope block) */ | 1616 | condexit = cond(ls); /* read condition (inside scope block) */ |
| 1617 | leaveblock(fs); /* finish scope */ | ||
| 1618 | if (bl2.upval) { /* upvalues? */ | 1617 | if (bl2.upval) { /* upvalues? */ |
| 1619 | int exit = luaK_jump(fs); /* normal exit must jump over fix */ | 1618 | int exit = luaK_jump(fs); /* normal exit must jump over fix */ |
| 1620 | luaK_patchtohere(fs, condexit); /* repetition must close upvalues */ | 1619 | luaK_patchtohere(fs, condexit); /* repetition must close upvalues */ |
| @@ -1623,6 +1622,7 @@ static void repeatstat (LexState *ls, int line) { | |||
| 1623 | luaK_patchtohere(fs, exit); /* normal exit comes to here */ | 1622 | luaK_patchtohere(fs, exit); /* normal exit comes to here */ |
| 1624 | } | 1623 | } |
| 1625 | luaK_patchlist(fs, condexit, repeat_init); /* close the loop */ | 1624 | luaK_patchlist(fs, condexit, repeat_init); /* close the loop */ |
| 1625 | leaveblock(fs); /* finish scope */ | ||
| 1626 | leaveblock(fs); /* finish loop */ | 1626 | leaveblock(fs); /* finish loop */ |
| 1627 | } | 1627 | } |
| 1628 | 1628 | ||
