[macruby-changes] [1246] MacRuby/branches/experimental/roxor.cpp

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 28 20:40:28 PDT 2009


Revision: 1246
          http://trac.macosforge.org/projects/ruby/changeset/1246
Author:   lsansonetti at apple.com
Date:     2009-03-28 20:40:24 -0700 (Sat, 28 Mar 2009)
Log Message:
-----------
Array#<< is supposed to return self and not the given object

Modified Paths:
--------------
    MacRuby/branches/experimental/roxor.cpp

Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp	2009-03-29 03:36:51 UTC (rev 1245)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-29 03:40:24 UTC (rev 1246)
@@ -5333,7 +5333,7 @@
 {
     if (overriden == 0 && TYPE(obj) == T_ARRAY) {
 	rb_ary_push(obj, other);
-	return other;
+	return obj;
     }
     return __rb_vm_dispatch(cache, obj, NULL, selLTLT, 0, 1, &other);
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090328/7b34d827/attachment.html>


More information about the macruby-changes mailing list