From f94228c8bd02cb16d0ffeff697bcf37dca6d420e Mon Sep 17 00:00:00 2001 From: tadf Date: Sat, 27 Jun 2009 07:58:15 +0000 Subject: * rational.c (nurat_cmp): use rb_num_coerce_cmp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rational.c') diff --git a/rational.c b/rational.c index 218a14883c..5a490d48c7 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); } } -- cgit v1.2.3