From e814f14713b8f79d9aa460f76c7533f28dd29523 Mon Sep 17 00:00:00 2001 From: keiju Date: Mon, 29 Mar 2010 08:40:31 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ ext/rational/lib/rational.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a4aab707e..2335d02654 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 29 17:38:24 2010 Keiju Ishitsuka + + * ext/rational/lib/rational.rb: fix [Bug #1397]. + Fri Mar 26 13:09:12 2010 Akinori MUSHA * 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 #