1
0
Fork 0
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:
mrkn 2016-11-12 11:51:41 +00:00
parent ee160e68f9
commit ea5b76a079

View file

@ -1896,7 +1896,7 @@ numeric_quo(VALUE x, VALUE y)
{ {
x = rb_convert_type(x, T_RATIONAL, "Rational", "to_r"); x = rb_convert_type(x, T_RATIONAL, "Rational", "to_r");
} }
return rb_funcall(x, '/', 1, y); return nurat_div(x, y);
} }