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

MacPorts noreply at macports.org
Tue Nov 3 14:45:07 PST 2009


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

Old description:

> On MacOS Leopard 10.5.8 with Ruby 1.87 (all patchlevels <= 174) and all
> compatible versions of MacPorts (<= 1.8.1)
>
> Hash equivalence fails when a value is a Fixnum > 536870911.
>
> >> {:a => 536870911}.hash == {:a => 536870911}.hash
> => true
>
> >> {:a => 536870912}.hash == {:a => 536870912}.hash
> => false

New description:

 On MacOS Leopard 10.5.8 with Ruby 1.87 (all patchlevels <= 174) and all
 compatible versions of MacPorts (<= 1.8.1)

 Hash equivalence fails when a value is a Fixnum > 536870911.

 {{{
 >> {:a => 536870911}.hash == {:a => 536870911}.hash
 => true
 }}}

 {{{
 >> {:a => 536870912}.hash == {:a => 536870912}.hash
 => false
 }}}

--

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


More information about the macports-tickets mailing list