[macruby-changes] [3327] MacRuby/trunk/dispatcher.cpp

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 22 22:35:34 PST 2010


Revision: 3327
          http://trac.macosforge.org/projects/ruby/changeset/3327
Author:   lsansonetti at apple.com
Date:     2010-01-22 22:35:34 -0800 (Fri, 22 Jan 2010)
Log Message:
-----------
refesh the #[] and #[]= optimizations for RubyHash

Modified Paths:
--------------
    MacRuby/trunk/dispatcher.cpp

Modified: MacRuby/trunk/dispatcher.cpp
===================================================================
--- MacRuby/trunk/dispatcher.cpp	2010-01-23 03:32:10 UTC (rev 3326)
+++ MacRuby/trunk/dispatcher.cpp	2010-01-23 06:35:34 UTC (rev 3327)
@@ -1362,7 +1362,7 @@
 		break;
 
 	    case T_HASH:
-		if (*(VALUE *)obj == rb_cCFHash) {
+		if (*(VALUE *)obj == rb_cRubyHash) {
 		    return rb_hash_aref(obj, other);
 		}
 		break;
@@ -1388,7 +1388,7 @@
 		break;
 
 	    case T_HASH:
-		if (*(VALUE *)obj == rb_cCFHash) {
+		if (*(VALUE *)obj == rb_cRubyHash) {
 		    return rb_hash_aset(obj, other1, other2);
 		}
 		break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100122/a1d7ab7d/attachment-0001.html>


More information about the macruby-changes mailing list