[macruby-changes] [2125] MacRuby/branches/experimental/vm.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 31 20:05:29 PDT 2009
Revision: 2125
http://trac.macosforge.org/projects/ruby/changeset/2125
Author: lsansonetti at apple.com
Date: 2009-07-31 20:05:27 -0700 (Fri, 31 Jul 2009)
Log Message:
-----------
fixed a bug in the fast aref primitive: convert fixnum argument to long and not int
Modified Paths:
--------------
MacRuby/branches/experimental/vm.cpp
Modified: MacRuby/branches/experimental/vm.cpp
===================================================================
--- MacRuby/branches/experimental/vm.cpp 2009-08-01 02:45:02 UTC (rev 2124)
+++ MacRuby/branches/experimental/vm.cpp 2009-08-01 03:05:27 UTC (rev 2125)
@@ -2860,7 +2860,7 @@
// TODO what about T_HASH?
if (overriden == 0 && TYPE(obj) == T_ARRAY) {
if (TYPE(other) == T_FIXNUM) {
- return rb_ary_entry(obj, FIX2INT(other));
+ return rb_ary_entry(obj, FIX2LONG(other));
}
extern VALUE rb_ary_aref(VALUE ary, SEL sel, int argc, VALUE *argv);
return rb_ary_aref(obj, 0, 1, &other);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090731/c8152ccd/attachment.html>
More information about the macruby-changes
mailing list