[macruby-changes] [4060] MacRuby/trunk/object.c

source_changes at macosforge.org source_changes at macosforge.org
Mon May 10 16:58:22 PDT 2010


Revision: 4060
          http://trac.macosforge.org/projects/ruby/changeset/4060
Author:   lsansonetti at apple.com
Date:     2010-05-10 16:58:20 -0700 (Mon, 10 May 2010)
Log Message:
-----------
fix coding style + removed unnecessary check

Modified Paths:
--------------
    MacRuby/trunk/object.c

Modified: MacRuby/trunk/object.c
===================================================================
--- MacRuby/trunk/object.c	2010-05-10 23:09:08 UTC (rev 4059)
+++ MacRuby/trunk/object.c	2010-05-10 23:58:20 UTC (rev 4060)
@@ -1493,8 +1493,9 @@
 static VALUE
 rb_obj_cmp(VALUE obj1, SEL sel, VALUE obj2)
 {
-    if (obj1 == obj2 || rb_obj_equal(obj1, 0, obj2))
+    if (rb_obj_equal(obj1, 0, obj2) == Qtrue) {
 	return INT2FIX(0);
+    }
     return Qnil;
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100510/85cb13ea/attachment.html>


More information about the macruby-changes mailing list