mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/object.c (rb_obj_cmp): Default <=> operator returns 0 if objects are == [ruby-core:24063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6a8408c2c
commit
b3c3dda3f4
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 24 10:31:50 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* lib/object.c (rb_obj_cmp): Default <=> operator returns 0 if
|
||||
objects are == [ruby-core:24063]
|
||||
|
||||
Wed Dec 23 09:12:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):
|
||||
|
|
2
object.c
2
object.c
|
@ -1131,7 +1131,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
|
|||
static VALUE
|
||||
rb_obj_cmp(VALUE obj1, VALUE obj2)
|
||||
{
|
||||
if (obj1 == obj2 || rb_obj_equal(obj1, obj2))
|
||||
if (obj1 == obj2 || rb_equal(obj1, obj2))
|
||||
return INT2FIX(0);
|
||||
return Qnil;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue