summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}