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
object.c
2
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue