summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
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));
}