From 6329da588b5a27834e3a73c1e08bf54356033757 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 27 Jul 2021 09:20:24 +0900 Subject: Use predefined IDs --- rational.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rational.c') diff --git a/rational.c b/rational.c index 846e8bd586..76a4264e0a 100644 --- a/rational.c +++ b/rational.c @@ -1043,7 +1043,7 @@ rb_rational_pow(VALUE self, VALUE other) return rb_float_pow(nurat_to_f(self), other); } else { - return rb_num_coerce_bin(self, other, rb_intern("**")); + return rb_num_coerce_bin(self, other, idPow); } } #define nurat_expt rb_rational_pow @@ -1102,7 +1102,7 @@ rb_rational_cmp(VALUE self, VALUE other) return rb_dbl_cmp(nurat_to_double(self), RFLOAT_VALUE(other)); default: - return rb_num_coerce_cmp(self, other, rb_intern("<=>")); + return rb_num_coerce_cmp(self, other, idCmp); } } -- cgit v1.2.3