Permalink
Browse files

merge revision(s) 27087:

	* ext/rational/lib/rational.rb: fix [Bug #1397].


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 9b2f0b9 commit 74e773385798c0793d39346c3561ec16cf3e3ad6 @shyouhei shyouhei committed Jun 8, 2010
Showing with 6 additions and 2 deletions.
  1. +4 −0 ChangeLog
  2. +1 −1 lib/rational.rb
  3. +1 −1 version.h
View
4 ChangeLog
@@ -1,3 +1,7 @@
+Tue Jun 8 14:00:33 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * ext/rational/lib/rational.rb: fix [Bug #1397].
+
Tue Jun 8 13:40:04 2010 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb (Date#>>): fixed. [ruby-core:28011]
View
2 lib/rational.rb
@@ -387,7 +387,7 @@ def round()
# Converts the rational to a Float.
#
def to_f
- @numerator.to_f/@denominator.to_f
+ @numerator.fdiv(@denominator)
end
#
View
2 version.h
@@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2010-06-08"
#define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20100608
-#define RUBY_PATCHLEVEL 270
+#define RUBY_PATCHLEVEL 271
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8

0 comments on commit 74e7733

Please sign in to comment.