diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-03 11:30:11 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-26 20:45:12 +0900 |
commit | 099778a6da8f0f2b32648f6d9b34233230ac6517 (patch) | |
tree | 1591ef1aa2b3c29e9b6930df0782e76a848bd825 /bignum.c | |
parent | f6dc053faf6a8850c50638b5e06fca9e878de7ae (diff) |
internal/bingnum.h rework
Turn macros into inline functions for better readability. Also add
rb_int128t2big delcaration, which was missing.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2711
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |