From 5d7d98c1ad6567c42e1d5f2c79330c8a206dd9d0 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Jul 2015 05:53:35 +0000 Subject: hash.c: fix float hash * hash.c (rb_any_hash): fix Float hash. rb_dbl_hash() returns a Fixnum, but not a long. [Bug #9381] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_hash.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 688dc8689a..d4837ca6cf 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1281,6 +1281,7 @@ class TestHash < Test::Unit::TestCase bad = [ 5, true, false, nil, + 0.0, 1.72723e-77, ].select do |x| hash = {x => bug9381} hash[wrapper.new(x)] != bug9381 -- cgit v1.2.3