mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Using RB_BIGNUM_TYPE_P macro
This commit is contained in:
parent
56065f0686
commit
032534dbdf
Notes:
git
2021-09-11 09:13:46 +09:00
15 changed files with 104 additions and 107 deletions
2
thread.c
2
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue