aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-17 17:07:29 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-17 17:07:29 +0000
commita3c9cda6d767a2952973dc22004226dd9e1c29c9 (patch)
tree7028ca84ab2b509294d85f1c089401cff1ab48af /bignum.c
parent087a393fa56c4dcf247588d2fb018c4bd46003cb (diff)
downloadruby-a3c9cda6d767a2952973dc22004226dd9e1c29c9.tar.gz
* bignum.c (rb_big_even_p, rb_big_odd_p): make them public functions
to be available in other source files. * include/ruby/intern.h (rb_big_even_p, rb_big_odd_p): add prototype declarations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bignum.c b/bignum.c
index 34c846a8f3..365bd3efc5 100644
--- a/bignum.c
+++ b/bignum.c
@@ -7006,7 +7006,7 @@ rb_big_bit_length(VALUE big)
* Returns <code>true</code> if <i>big</i> is an odd number.
*/
-static VALUE
+VALUE
rb_big_odd_p(VALUE num)
{
if (BIGNUM_LEN(num) != 0 && BDIGITS(num)[0] & 1) {
@@ -7022,7 +7022,7 @@ rb_big_odd_p(VALUE num)
* Returns <code>true</code> if <i>big</i> is an even number.
*/
-static VALUE
+VALUE
rb_big_even_p(VALUE num)
{
if (BIGNUM_LEN(num) != 0 && BDIGITS(num)[0] & 1) {