diff options
author | Kenta Murata <[email protected]> | 2019-12-31 22:48:23 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-31 22:48:23 +0900 |
commit | e082f41611755b0fde967fccf3174c90ecb8469e (patch) | |
tree | ea496f496836091ff4a2046613b11a112af9fb99 /gc.c | |
parent | 4ce28b58cbf3f3b5ab0bcd3fa4479d4f6d427158 (diff) |
Introduce BIGNUM_EMBED_P to check BIGNUM_EMBED_FLAG (#2802)
* bignum.h: Add BIGNUM_EMBED_P
* bignum.c: Use macros for handling BIGNUM_EMBED_FLAG
Notes
Notes:
Merged-By: mrkn <[email protected]>
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2815,7 +2815,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj) break; case T_BIGNUM: - if (!(RBASIC(obj)->flags & BIGNUM_EMBED_FLAG) && BIGNUM_DIGITS(obj)) { + if (!BIGNUM_EMBED_P(obj) && BIGNUM_DIGITS(obj)) { xfree(BIGNUM_DIGITS(obj)); RB_DEBUG_COUNTER_INC(obj_bignum_ptr); } |