Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix #172] fix the Range#each where does not accept the range object …

…when create it with object which has to_str method as begin of range
  • Loading branch information...
commit daf4c52728a98e9380ad5c4ace3004314056e661 1 parent 7a24966
@Watson1978 Watson1978 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  range.c
View
2  range.c
@@ -544,7 +544,7 @@ range_each(VALUE range, SEL sel)
args[0] = end;
args[1] = EXCL(range) ? Qtrue : Qfalse;
- rb_objc_block_call(beg, selUpto, 2, args, rb_yield, 0);
+ rb_objc_block_call(tmp, selUpto, 2, args, rb_yield, 0);
}
else {
if (!discrete_object_p(beg)) {
Please sign in to comment.
Something went wrong with that request. Please try again.