From: Yukihiro Matsumoto Date: 2009-12-24T09:31:31+09:00 Subject: [ruby-core:27302] Re: [Feature #1697](Assigned) Object#<=> Hi, In message "Re: [ruby-core:27300] [Feature #1697](Assigned) Object#<=>" on Thu, 24 Dec 2009 07:15:13 +0900, "ujihisa ." writes: | |Issue #1697 has been updated by ujihisa .. | |Status changed from Open to Assigned | |As Marc-Andre says, the current following code is redundant. | | static VALUE | rb_obj_cmp(VALUE obj1, VALUE obj2) | { | if (obj1 == obj2 || rb_obj_equal(obj1, obj2)) | return INT2FIX(0); | return Qnil; | } It should be: | if (obj1 == obj2 || rb_equal(obj1, obj2)) matz.