From c9db11ea60413f98e23dbae4892c6612bb97645a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 14 Jun 2018 07:09:02 +0000 Subject: bignum.c: get rid of redefined method * bignum.c (int_pow_tmp3): get rid of redefined Integer#> on internal calculations, as well as the GMP version. * bignum.c (rb_int_powm): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 569d558425..7047f9185d 100644 --- a/numeric.c +++ b/numeric.c @@ -295,6 +295,18 @@ int_neg_p(VALUE num) rb_raise(rb_eTypeError, "not an Integer"); } +int +rb_int_positive_p(VALUE num) +{ + return int_pos_p(num); +} + +int +rb_int_negative_p(VALUE num) +{ + return int_neg_p(num); +} + int rb_num_negative_p(VALUE num) { -- cgit v1.2.3