diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-27 07:58:15 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-27 07:58:15 +0000 |
commit | 4e2683759cae53bcfb94e8d574214b1576c53669 (patch) | |
tree | 97f973fe1ce668ad86a961844134e600fce8253c /rational.c | |
parent | 68e2a517084c048e1de7868755a65185e7a97189 (diff) | |
download | ruby-4e2683759cae53bcfb94e8d574214b1576c53669.tar.gz ruby-4e2683759cae53bcfb94e8d574214b1576c53669.tar.xz ruby-4e2683759cae53bcfb94e8d574214b1576c53669.zip |
* rational.c (nurat_cmp): use rb_num_coerce_cmp.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23871 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 218a14883..5a490d48c 100644 --- a/rational.c +++ b/rational.c @@ -979,7 +979,7 @@ nurat_cmp(VALUE self, VALUE other) return f_cmp(f_sub(num1, num2), ZERO); } default: - return rb_num_coerce_bin(self, other, id_cmp); + return rb_num_coerce_cmp(self, other, id_cmp); } } |