diff options
author | S-H-GAMELINKS <[email protected]> | 2021-09-11 09:56:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-12 11:16:31 +0900 |
commit | 83a5e2bb5c1b9f24b70dc30c50b5deb4d7232119 (patch) | |
tree | 4b1746f42c5806022b299ecef9f3f6d833fcf442 /enumerator.c | |
parent | af5826a25e24ba7179038f99362aa918d48bd8be (diff) |
Using RB_FLOAT_TYPE_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4821
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c index 3ada2b0957..0dc804a3cf 100644 --- a/enumerator.c +++ b/enumerator.c @@ -3187,7 +3187,7 @@ enum_chain_total_size(VALUE enums) for (i = 0; i < RARRAY_LEN(enums); i++) { VALUE size = enum_size(RARRAY_AREF(enums, i)); - if (NIL_P(size) || (RB_TYPE_P(size, T_FLOAT) && isinf(NUM2DBL(size)))) { + if (NIL_P(size) || (RB_FLOAT_TYPE_P(size) && isinf(NUM2DBL(size)))) { return size; } if (!RB_INTEGER_TYPE_P(size)) { |