diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-12 11:51:41 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-12 11:51:41 +0000 |
commit | ea5b76a079c95535bdaf14824e48c9387fa947a6 (patch) | |
tree | 91c7fc90107e37e86c81e5b0fb0158b1242d9ea5 /rational.c | |
parent | ee160e68f9fbb518d4f514987a329fc0a2332973 (diff) |
rational.c: optimize Numeric#quo
* rational.c (numeric_quo): optimize Numeric#quo.
Author: Tadashi Saito <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c index 0c64f797af..1e40841bee 100644 --- a/rational.c +++ b/rational.c @@ -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); } |