Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed the return value of #loop (in case of break)

  • Loading branch information...
commit 5c8cd3fe3ebe9163e2e84a7b2a2ccfa299d0b8cd 1 parent a8750de
Laurent Sansonetti authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  vm_eval.c
View
3  vm_eval.c
@@ -269,8 +269,7 @@ loop_i(void)
static VALUE
rb_f_loop(VALUE klass, SEL sel)
{
- rb_rescue2(loop_i, (VALUE)0, 0, 0, rb_eStopIteration, (VALUE)0);
- return Qnil; /* dummy */
+ return rb_rescue2(loop_i, (VALUE)0, 0, 0, rb_eStopIteration, (VALUE)0);
}
VALUE
Please sign in to comment.
Something went wrong with that request. Please try again.