mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
3 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.1"
|
||||
#define RUBY_PATCHLEVEL 426
|
||||
#define RUBY_PATCHLEVEL 427
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 9
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue