diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-20 08:56:42 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-02-20 08:56:42 +0000 |
commit | 265442fbdbd384fdf68782613c200b86cdf2f0af (patch) | |
tree | 48f0b3d55c5ae930f5b63e58e581a49dcc37d2ed | |
parent | 861095398453d08ed3b104c1f3bad4d970552fab (diff) |
1.1b8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@86 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | numeric.c | 4 | ||||
-rw-r--r-- | version.h | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -37,7 +37,9 @@ static VALUE num_coerce(x, y) VALUE x, y; { - return assoc_new(rb_Float(x),rb_Float(y)); + if (CLASS_OF(x) == CLASS_OF(y)) + return assoc_new(x, y); + return assoc_new(rb_Float(x), rb_Float(y)); } coerce_body(x) @@ -1,2 +1,2 @@ -#define RUBY_VERSION "1.1b7" -#define VERSION_DATE "98/02/10" +#define RUBY_VERSION "1.1b8" +#define VERSION_DATE "98/02/20" |