aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-12-03 11:30:11 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-12-26 20:45:12 +0900
commit099778a6da8f0f2b32648f6d9b34233230ac6517 (patch)
tree1591ef1aa2b3c29e9b6930df0782e76a848bd825 /bignum.c
parentf6dc053faf6a8850c50638b5e06fca9e878de7ae (diff)
downloadruby-099778a6da8f0f2b32648f6d9b34233230ac6517.tar.gz
internal/bingnum.h rework
Turn macros into inline functions for better readability. Also add rb_int128t2big delcaration, which was missing.
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 370c63c787..3923da7d0b 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2996,7 +2996,7 @@ static VALUE
bignew_1(VALUE klass, size_t len, int sign)
{
NEWOBJ_OF(big, struct RBignum, klass, T_BIGNUM | (RGENGC_WB_PROTECTED_BIGNUM ? FL_WB_PROTECTED : 0));
- BIGNUM_SET_SIGN(big, sign);
+ BIGNUM_SET_SIGN((VALUE)big, sign);
if (len <= BIGNUM_EMBED_LEN_MAX) {
RBASIC(big)->flags |= BIGNUM_EMBED_FLAG;
BIGNUM_SET_LEN(big, len);