diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-15 07:36:35 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-15 07:36:35 +0000 |
commit | b604386fad8d7b26df87efd19134b3a6ac171fb3 (patch) | |
tree | 3f6e1203fc4994aca66657db067fefce1af73f0e /lib/rational.rb | |
parent | 8d330378cae29238587528ba84daf7858c8fea35 (diff) |
* 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
Diffstat (limited to 'lib/rational.rb')
-rw-r--r-- | lib/rational.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |