Permalink
Browse files

should not search the private method with rb_vm_respond_to()

  • Loading branch information...
Watson1978 committed Aug 23, 2012
1 parent 0635b6d commit 57bc5a337065a8fa5fe0a0108422c96b8ee58043
Showing with 2 additions and 2 deletions.
  1. +1 −1 array.c
  2. +1 −1 range.c
View
@@ -2517,7 +2517,7 @@ rary_equal(VALUE ary1, SEL sel, VALUE ary2)
return Qtrue;
}
if (TYPE(ary2) != T_ARRAY) {
- if (!rb_vm_respond_to(ary2, selToAry, true)) {
+ if (!rb_vm_respond_to(ary2, selToAry, false)) {
return Qfalse;
}
return rb_equal(ary2, ary1);
View
@@ -341,7 +341,7 @@ static int
discrete_object_p(VALUE obj)
{
if (rb_obj_is_kind_of(obj, rb_cTime)) return FALSE; /* until Time#succ removed */
- return rb_vm_respond_to(obj, selSucc, true);
+ return rb_vm_respond_to(obj, selSucc, false);
}

0 comments on commit 57bc5a3

Please sign in to comment.