diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2021-09-11 09:56:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-12 11:16:31 +0900 |
commit | 83a5e2bb5c1b9f24b70dc30c50b5deb4d7232119 (patch) | |
tree | 4b1746f42c5806022b299ecef9f3f6d833fcf442 /math.c | |
parent | af5826a25e24ba7179038f99362aa918d48bd8be (diff) |
Using RB_FLOAT_TYPE_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4821
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -623,7 +623,7 @@ f_negative_p(VALUE x) inline static VALUE f_signbit(VALUE x) { - if (RB_TYPE_P(x, T_FLOAT)) { + if (RB_FLOAT_TYPE_P(x)) { double f = RFLOAT_VALUE(x); return RBOOL(!isnan(f) && signbit(f)); } |