aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 4d8fd0bf09..5cb1aad8a1 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1086,7 +1086,7 @@ rb_float_mul(VALUE x, VALUE y)
static bool
flo_iszero(VALUE f)
{
- return RFLOAT_VALUE(f) == 0.0;
+ return FLOAT_ZERO_P(f);
}
static double