Fixnum#+ and Fixnum#* return Fixnum in cases when Bignum is needed
------------------------------------------------------------------
Key: JRUBY-1940
URL: http://jira.codehaus.org/browse/JRUBY-1940
Project: JRuby
Issue Type: Bug
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
{noformat}
(-9223372036854775808).class ==> Bignum
(-9223372036854775808 + 0).class ==> FixNum
(-4611686018427387904 * 2).class ==> FixNum
{noformat}
This leads to very weird things like (NEGATIVE abs values!)
{noformat}
(-9223372036854775808 + 0).abs ==> -9223372036854775808
(-4611686018427387904 * 2).abs ==> -9223372036854775808
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email