Bignum with small values can be created with String#to_i
--------------------------------------------------------

                 Key: JRUBY-4861
                 URL: http://jira.codehaus.org/browse/JRUBY-4861
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5
         Environment: OSX 10.5
            Reporter: Javier Goizueta
            Priority: Minor


String#to_i produces Bignums from long string even for small values, e.g,. if 
the string has enough trailing spaces:
  puts "10              ".to_i.class # => Bignum

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