Using RB_BIGNUM_TYPE_P macro

This commit is contained in:
S-H-GAMELINKS 2021-09-03 20:50:12 +09:00 committed by Nobuyoshi Nakada
parent 56065f0686
commit 032534dbdf
Notes: git 2021-09-11 09:13:46 +09:00
15 changed files with 104 additions and 107 deletions

View file

@ -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