From 833c8ad17b33c0ca77b163d75050e7a3cd7c8cf8 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: http://svn.ruby-lang.org/repos/ruby/trunk@2708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rational.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rational.rb b/lib/rational.rb index ff35f36a3..16ee00890 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