From ce81367bc953fbe236dcd58f4145b6a95b02a9c5 Mon Sep 17 00:00:00 2001 From: mrkn Date: Thu, 17 Mar 2016 17:07:29 +0000 Subject: * 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 --- bignum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bignum.c') 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 true if big 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 true if big is an even number. */ -static VALUE +VALUE rb_big_even_p(VALUE num) { if (BIGNUM_LEN(num) != 0 && BDIGITS(num)[0] & 1) { -- cgit v1.2.3