Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.2
-
Fix Version/s: JRuby 1.3RC1
-
Component/s: RubySpec
-
Labels:None
-
Environment:jirb or jruby
-
Number of attachments :
Description
y=1073741824
z0 = y*y*y
-> 0 (in jruby)
but
-> 1237940039285380274899124224 (in ruby)
hint: in hex
y = 0x40000000
Hah, very nice. We must not be detecting overflow in integer multiplication correctly.