diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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 diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index fd5b4afd91..7eecc1ade1 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -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| |