1
0
Fork 0
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:
akr 2008-06-30 16:04:04 +00:00
parent d73f504748
commit 8f521e4af9

View file

@ -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