[ruby-cvs:57148] nobu:r49999 (trunk): hash.c: same hash values with Float#hash

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Mar 18 12:02:03 JST 2015


nobu	2015-03-18 12:01:58 +0900 (Wed, 18 Mar 2015)

  New Revision: 49999

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49999

  Log:
    hash.c: same hash values with Float#hash
    
    * hash.c (rb_any_hash): use same hash values with Float#hash so
      that -0.0 and +0.0 will be identical.
      [ruby-core:68541] [Bug #10979]

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/internal.h
    trunk/numeric.c
    trunk/test/ruby/test_float.rb


More information about the ruby-cvs mailing list