String#unpack with "Q" pattern always returns Bignums even for small values
---------------------------------------------------------------------------

                 Key: JRUBY-2037
                 URL: http://jira.codehaus.org/browse/JRUBY-2037
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: Latest JRuby 1.1RC1
            Reporter: Vladimir Sizikov


"\x01\x00\x00\x00\x00\x00\x00\x00".unpack("Q")[0] ==> 1
"\x01\x00\x00\x00\x00\x00\x00\x00".unpack("Q")[0].class ==> Bignum

Should probably return Fixnum for small values, as MRI does.

Fix is coming.

-- 
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

Reply via email to