mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rational.c: optimize Numeric#quo
* rational.c (numeric_quo): optimize Numeric#quo. Author: Tadashi Saito <tad.a.digger@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee160e68f9
commit
ea5b76a079
1 changed files with 1 additions and 1 deletions
|
@ -1896,7 +1896,7 @@ numeric_quo(VALUE x, VALUE y)
|
|||
{
|
||||
x = rb_convert_type(x, T_RATIONAL, "Rational", "to_r");
|
||||
}
|
||||
return rb_funcall(x, '/', 1, y);
|
||||
return nurat_div(x, y);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue