Skip to content

Commit 58a4828

Browse files
committed
merges r23892 from trunk into ruby_1_9_1.
-- * rational.c (float_to_r): always returns rational. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent ba595fe commit 58a4828

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Mon Jun 29 20:29:11 2009 Tadayoshi Funaba <tadf@dotrb.org>
2+
3+
* rational.c (float_to_r): always returns rational.
4+
15
Sun Jul 19 20:41:24 2009 Tadayoshi Funaba <tadf@dotrb.org>
26

37
* complex.c (make_patterns): do not use \d.

rational.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ float_to_r(VALUE self)
13071307
VALUE f, n;
13081308

13091309
float_decode_internal(self, &f, &n);
1310-
return f_mul(f, f_expt(INT2FIX(FLT_RADIX), n));
1310+
return f_to_r(f_mul(f, f_expt(INT2FIX(FLT_RADIX), n)));
13111311
}
13121312

13131313
static VALUE rat_pat, an_e_pat, a_dot_pat, underscores_pat, an_underscore;

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define RUBY_VERSION "1.9.1"
2-
#define RUBY_PATCHLEVEL 426
2+
#define RUBY_PATCHLEVEL 427
33
#define RUBY_VERSION_MAJOR 1
44
#define RUBY_VERSION_MINOR 9
55
#define RUBY_VERSION_TEENY 1

0 commit comments

Comments
 (0)