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 | 833c8ad17b33c0ca77b163d75050e7a3cd7c8cf8 (patch) | |
tree | 3f6e1203fc4994aca66657db067fefce1af73f0e | |
parent | 0f90775be54e80c86c7d4a690cdfa258e34b7b45 (diff) | |
download | ruby-833c8ad17b33c0ca77b163d75050e7a3cd7c8cf8.tar.gz ruby-833c8ad17b33c0ca77b163d75050e7a3cd7c8cf8.tar.xz ruby-833c8ad17b33c0ca77b163d75050e7a3cd7c8cf8.zip |
* 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
-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 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 |