Issue #3640 has been updated by Kenta Murata.


Sorry, the code I've shown is improper.

The proper code is here:

$ ruby -rbigdecimal -ve '
a = []
b = BigDecimal("-1")
10.times { a << (b *= 10).hash }
p a'
ruby 1.9.3dev (2010-08-01 trunk 28823) [x86_64-darwin10.4.0]
[-2, -2, -2, -2, -2, -2, -2, -2, -2, -2]

----------------------------------------
http://redmine.ruby-lang.org/issues/show/3640

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