Permalink
Browse files

Adjust exit point in `loop_pop()`; fix #3541

  • Loading branch information...
matz committed Apr 3, 2017
1 parent d35fcf1 commit 666787beb23637e4c1856011e04cef86380fdb2d
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-compiler/core/codegen.c
@@ -2956,10 +2956,10 @@ loop_break(codegen_scope *s, node *tree)
static void
loop_pop(codegen_scope *s, int val)
{
dispatch_linked(s, s->loop->pc3);
if (val) {
genop(s, MKOP_A(OP_LOADNIL, cursp()));
}
dispatch_linked(s, s->loop->pc3);
s->loop = s->loop->prev;
if (val) push();
}

0 comments on commit 666787b

Please sign in to comment.