summaryrefslogtreecommitdiff
path: root/object.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 /object.c
parent56065f0686e6798fff2ee7319f0f03026f427c13 (diff)
downloadruby-032534dbdf08c0912dffa482e29a491b8aa9276c.tar.gz
Using RB_BIGNUM_TYPE_P macro
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 81b9b12a7a..172eacbdae 100644
--- a/object.c
+++ b/object.c
@@ -3425,7 +3425,7 @@ rb_str_to_dbl(VALUE str, int badcheck)
(FIXNUM_P(x) ? fix2dbl_without_to_f(x) : big2dbl_without_to_f(x))
#define num2dbl_without_to_f(x) \
(FIXNUM_P(x) ? fix2dbl_without_to_f(x) : \
- RB_TYPE_P(x, T_BIGNUM) ? big2dbl_without_to_f(x) : \
+ RB_BIGNUM_TYPE_P(x) ? big2dbl_without_to_f(x) : \
(Check_Type(x, T_FLOAT), RFLOAT_VALUE(x)))
static inline double
rat2dbl_without_to_f(VALUE x)