summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-09-03 20:50:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-11 09:13:24 +0900
commit032534dbdf08c0912dffa482e29a491b8aa9276c (patch)
tree0ef482a3c7d764610ae9e3a0c737fa3133032de7 /gc.c
parent56065f0686e6798fff2ee7319f0f03026f427c13 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index ac280f1e2d..b5656c59f3 100644
--- a/gc.c
+++ b/gc.c
@@ -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 {