summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-14 07:09:02 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-14 07:09:02 (GMT)
commitc9db11ea60413f98e23dbae4892c6612bb97645a (patch)
tree46af48a9f831f5c6cb8a2dddcd07e014887dc9ee /numeric.c
parentfa0f702c5b455252c66ede8563af7dd928eb8b95 (diff)
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
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index 569d558..7047f91 100644
--- a/numeric.c
+++ b/numeric.c
@@ -296,6 +296,18 @@ int_neg_p(VALUE num)
}
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)
{
return rb_num_negative_int_p(num);