From b604386fad8d7b26df87efd19134b3a6ac171fb3 Mon Sep 17 00:00:00 2001 From: keiju Date: Thu, 15 Aug 2002 07:36:35 +0000 Subject: * lib/rational.rb(Rational#hash): modify algorism for hash-function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rational.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rational.rb b/lib/rational.rb index ff35f36a3e..16ee00890f 100644 --- a/lib/rational.rb +++ b/lib/rational.rb @@ -240,7 +240,7 @@ class Rational < Numeric end def hash - @numerator ^ @denominator + @numerator.hash ^ @denominator.hash end attr :numerator -- cgit v1.2.3