diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-29 08:40:31 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-29 08:40:31 +0000 |
commit | e814f14713b8f79d9aa460f76c7533f28dd29523 (patch) | |
tree | 71ddaa155453eb16aff2867f30205c8058d324e5 | |
parent | 7d4c34b9c674a6244a0be62fdd7221dbfbb71601 (diff) |
* ext/rational/lib/rational.rb: fix [Bug #1397].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/rational/lib/rational.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Mar 29 17:38:24 2010 Keiju Ishitsuka <[email protected]> + + * ext/rational/lib/rational.rb: fix [Bug #1397]. + Fri Mar 26 13:09:12 2010 Akinori MUSHA <[email protected]> * eval.c (rb_eval): Use for() and make it a bit easier to read and diff --git a/ext/rational/lib/rational.rb b/ext/rational/lib/rational.rb index cf8e90b2c1..65d8c44110 100644 --- a/ext/rational/lib/rational.rb +++ b/ext/rational/lib/rational.rb @@ -383,7 +383,7 @@ class Rational < Numeric # Converts the rational to a Float. # def to_f - @numerator.to_f/@denominator.to_f + @numerator.fdiv(@denominator) end # |