[MacPorts] #22361: Ruby 1.87 Hash equivalence fails on large Fixnums

MacPorts noreply at macports.org
Tue Nov 3 14:39:40 PST 2009


#22361: Ruby 1.87 Hash equivalence fails on large Fixnums
----------------------------+-----------------------------------------------
 Reporter:  ben@…           |       Owner:  macports-tickets@…                   
     Type:  defect          |      Status:  new                                  
 Priority:  Normal          |   Milestone:                                       
Component:  ports           |     Version:  1.8.1                                
 Keywords:  ruby hash       |        Port:                                       
----------------------------+-----------------------------------------------

Comment(by visnupx@…):

 btw, 2**29 == 536870912.  also, works on snow leopard:

 {{{
 >> {:a => 2**29-1}.hash
 => 2146753031
 >> {:a => 2**29-1}.hash
 => 2146753031
 >> {:a => 2**29}.hash
 => -2146753029
 >> {:a => 2**29}.hash
 => -2146753029
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/22361#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list