mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
forgot to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d73f504748
commit
8f521e4af9
1 changed files with 3 additions and 1 deletions
|
@ -121,7 +121,9 @@ num_coerce(x, y)
|
|||
{
|
||||
if (CLASS_OF(x) == CLASS_OF(y))
|
||||
return rb_assoc_new(y, x);
|
||||
return rb_assoc_new(rb_Float(y), rb_Float(x));
|
||||
x = rb_Float(x);
|
||||
y = rb_Float(y);
|
||||
return rb_assoc_new(y, x);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue