Bug #3640: BigDecimal#hash returns -2 for all negative finite numbers.
http://redmine.ruby-lang.org/issues/show/3640

Author: Kenta Murata
Status: Assigned, Priority: Normal
Assigned to: Kenta Murata, Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2010-08-01 trunk 28823) [x86_64-darwin10.4.0]

$ ruby -rbigdecimal -ve '
> a = []
> b = BigDecimal("-1")
> 10.times { a << b *= 10 }
> h = {}
> a.each_with_index {|x, i| h[x] = i }
> p a.all? {|x, i| i == h[x] }'
ruby 1.9.3dev (2010-08-01 trunk 28823) [x86_64-darwin10.4.0]
false


----------------------------------------
http://redmine.ruby-lang.org