From 83a5e2bb5c1b9f24b70dc30c50b5deb4d7232119 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Sat, 11 Sep 2021 09:56:59 +0900 Subject: Using RB_FLOAT_TYPE_P macro --- math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math.c') 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)); } -- cgit v1.2.1