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
This commit is contained in:
parent
ba595fe918
commit
58a4828163
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 29 20:29:11 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* rational.c (float_to_r): always returns rational.
|
||||
|
||||
Sun Jul 19 20:41:24 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* complex.c (make_patterns): do not use \d.
|
||||
|
|
|
@ -1307,7 +1307,7 @@ float_to_r(VALUE self)
|
|||
VALUE f, n;
|
||||
|
||||
float_decode_internal(self, &f, &n);
|
||||
return f_mul(f, f_expt(INT2FIX(FLT_RADIX), n));
|
||||
return f_to_r(f_mul(f, f_expt(INT2FIX(FLT_RADIX), n)));
|
||||
}
|
||||
|
||||
static VALUE rat_pat, an_e_pat, a_dot_pat, underscores_pat, an_underscore;
|
||||
|
|
Loading…
Reference in New Issue