summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-09-11 09:56:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 11:16:31 +0900
commit83a5e2bb5c1b9f24b70dc30c50b5deb4d7232119 (patch)
tree4b1746f42c5806022b299ecef9f3f6d833fcf442 /math.c
parentaf5826a25e24ba7179038f99362aa918d48bd8be (diff)
downloadruby-83a5e2bb5c1b9f24b70dc30c50b5deb4d7232119.tar.gz
Using RB_FLOAT_TYPE_P macro
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index dd45caf6b7..cce29b526b 100644
--- a/math.c
+++ b/math.c
@@ -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));
}