[MacPorts] #22361: Ruby 1.87 Hash equivalence fails on large Fixnums
MacPorts
noreply at macports.org
Wed Nov 4 06:00:12 PST 2009
#22361: Ruby 1.87 Hash equivalence fails on large Fixnums
----------------------------+-----------------------------------------------
Reporter: ben@… | Owner: kimuraw@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: ruby
----------------------------+-----------------------------------------------
Comment(by kimuraw@…):
Hash#hash returns different values from each invocations.
{{{
% ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
% irb --simple-prompt
>> h = {:a => 2**61}
=> {:a=>2305843009213693952}
>> h.hash
=> 3933384
>> h.hash
=> 4179968
}}}
I think this is a problem of ruby. I filed a ticket for redmine.ruby-
lang.org (in japanese).
http://redmine.ruby-lang.org/issues/show/2334
--
Ticket URL: <http://trac.macports.org/ticket/22361#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list