ruby-changes:15206
From: keiju <ko1@a...>
Date: Mon, 29 Mar 2010 17:40:49 +0900 (JST)
Subject: [ruby-changes:15206] Ruby:r27087 (ruby_1_8): * ext/rational/lib/rational.rb: fix [Bug #1397].
keiju 2010-03-29 17:40:31 +0900 (Mon, 29 Mar 2010) New Revision: 27087 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27087 Log: * ext/rational/lib/rational.rb: fix [Bug #1397]. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/rational/lib/rational.rb Index: ruby_1_8/ext/rational/lib/rational.rb =================================================================== --- ruby_1_8/ext/rational/lib/rational.rb (revision 27086) +++ ruby_1_8/ext/rational/lib/rational.rb (revision 27087) @@ -383,7 +383,7 @@ # Converts the rational to a Float. # def to_f - @numerator.to_f/@d..._f + @numerator.fdiv(@denominator) end # Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 27086) +++ ruby_1_8/ChangeLog (revision 27087) @@ -1,3 +1,7 @@ +Mon Mar 29 17:38:24 2010 Keiju Ishitsuka <keiju@r...> + + * ext/rational/lib/rational.rb: fix [Bug #1397]. + Fri Mar 26 13:09:12 2010 Akinori MUSHA <knu@i...> * eval.c (rb_eval): Use for() and make it a bit easier to read and -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/