Literal unary minus bignum/fixnum boundary lack of symmetry
-----------------------------------------------------------
Key: JRUBY-5062
URL: http://jira.codehaus.org/browse/JRUBY-5062
Project: JRuby
Issue Type: Bug
Components: Parser
Affects Versions: JRuby 1.5.2
Reporter: Thomas E Enebo
Assignee: Thomas E Enebo
The following script should alternate between being a Fixnum and a Bignum since
the negated value will fit into a Fixnum when negative but need to be promoted
to a Bignum for the positive value. MRI also behaves this like, but with a
lower value since we use a long for our Fixnums:
{noformat}
./bin/jruby -e 'p (9223372036854775808).class, (-9223372036854775808).class,
(--9223372036854775808).class, (---9223372036854775808).class'
{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