summaryrefslogtreecommitdiff
path: root/thread.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 /thread.c
parent56065f0686e6798fff2ee7319f0f03026f427c13 (diff)
Using RB_BIGNUM_TYPE_P macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4805
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 7d10545b0b..7e1c1a65bb 100644
--- a/thread.c
+++ b/thread.c
@@ -5170,7 +5170,7 @@ recursive_check(VALUE list, VALUE obj, VALUE paired_obj_id)
#if SIZEOF_LONG == SIZEOF_VOIDP
#define OBJ_ID_EQL(obj_id, other) ((obj_id) == (other))
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
- #define OBJ_ID_EQL(obj_id, other) (RB_TYPE_P((obj_id), T_BIGNUM) ? \
+ #define OBJ_ID_EQL(obj_id, other) (RB_BIGNUM_TYPE_P((obj_id)) ? \
rb_big_eql((obj_id), (other)) : ((obj_id) == (other)))
#endif