1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_hash):

shut up warning.  see [ruby-dev:37437]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2008-12-17 02:40:53 +00:00
parent 6bcd363ebf
commit 3d923f01bf
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Dec 17 11:39:39 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_hash):
shut up warning. see [ruby-dev:37437]
Wed Dec 17 11:01:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_hash): gets rid of collisions between differen

View file

@ -256,8 +256,8 @@ class TestBigDecimal < Test::Unit::TestCase
def test_hash
a = []
x = BigDecimal.new("1")
10.times { a << x *= 10 }
b = BigDecimal.new("1")
10.times { a << b *= 10 }
h = {}
a.each_with_index {|x, i| h[x] = i }
a.each_with_index do |x, i|