[macruby-changes] [1834] MacRuby/branches/fp-optimized-experimental/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 11 09:53:29 PDT 2009
Revision: 1834
http://trac.macosforge.org/projects/ruby/changeset/1834
Author: pthomson at apple.com
Date: 2009-06-11 09:53:29 -0700 (Thu, 11 Jun 2009)
Log Message:
-----------
Fixed an incorrect shift parameter.
Modified Paths:
--------------
MacRuby/branches/fp-optimized-experimental/compiler.cpp
Modified: MacRuby/branches/fp-optimized-experimental/compiler.cpp
===================================================================
--- MacRuby/branches/fp-optimized-experimental/compiler.cpp 2009-06-10 11:26:28 UTC (rev 1833)
+++ MacRuby/branches/fp-optimized-experimental/compiler.cpp 2009-06-11 16:53:29 UTC (rev 1834)
@@ -1904,7 +1904,7 @@
BasicBlock *then3BB;
if (result_is_fixnum) {
- Value *shift = BinaryOperator::CreateShl(opVal, twoVal, "", bb);
+ Value *shift = BinaryOperator::CreateShl(opVal, oneVal, "", bb);
thenVal = BinaryOperator::CreateOr(shift, oneVal, "", bb);
// Is result fixable?
@@ -1943,7 +1943,7 @@
return pn;
}
- }
+ }
// Other operators (#<< or #[] or #[]=)
else if (sel == selLTLT || sel == selAREF || sel == selASET) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090611/4ee56e29/attachment.html>
More information about the macruby-changes
mailing list