diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-19 04:32:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-19 04:32:52 +0000 |
commit | 6839d47eb88a839155db263b6d262b1e5a6a2406 (patch) | |
tree | 02969d192245bbaa2c5650ee0a0b31312d728e49 /bignum.c | |
parent | 5f03f753eefcff619b8792c52a4a6735bd626282 (diff) | |
download | ruby-6839d47eb88a839155db263b6d262b1e5a6a2406.tar.gz |
ruby.h: rb_big_sign
* include/ruby/ruby.h (RBIGNUM_SIGN): use a wrapper function to
return the sign bit, instead of comparing with 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6691,6 +6691,12 @@ rb_big_abs(VALUE x) return x; } +int +rb_big_sign(VALUE x) +{ + return BIGNUM_SIGN(x); +} + size_t rb_big_size(VALUE big) { |