mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7dd3853eac
commit
96b40dff45
27 changed files with 286 additions and 171 deletions
|
@ -43,8 +43,8 @@ num_coerce(x, y)
|
|||
VALUE x, y;
|
||||
{
|
||||
if (CLASS_OF(x) == CLASS_OF(y))
|
||||
return rb_assoc_new(x, y);
|
||||
return rb_assoc_new(rb_Float(x), rb_Float(y));
|
||||
return rb_assoc_new(y, x);
|
||||
return rb_assoc_new(rb_Float(y), rb_Float(x));
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue