diff options
author | S-H-GAMELINKS <[email protected]> | 2021-09-03 20:50:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-11 09:13:24 +0900 |
commit | 032534dbdf08c0912dffa482e29a491b8aa9276c (patch) | |
tree | 0ef482a3c7d764610ae9e3a0c737fa3133032de7 /gc.c | |
parent | 56065f0686e6798fff2ee7319f0f03026f427c13 (diff) |
Using RB_BIGNUM_TYPE_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4805
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3417,7 +3417,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj) static int object_id_cmp(st_data_t x, st_data_t y) { - if (RB_TYPE_P(x, T_BIGNUM)) { + if (RB_BIGNUM_TYPE_P(x)) { return !rb_big_eql(x, y); } else { @@ -3428,7 +3428,7 @@ object_id_cmp(st_data_t x, st_data_t y) static st_index_t object_id_hash(st_data_t n) { - if (RB_TYPE_P(n, T_BIGNUM)) { + if (RB_BIGNUM_TYPE_P(n)) { return FIX2LONG(rb_big_hash(n)); } else { |