aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-09 07:05:37 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-09 07:05:37 +0000
commitfc9e0302ea6756e0ea95dbc11216a3a776ad16a6 (patch)
treed92ebe56e6e702b77db3c8c6693cafd1c41435c8 /numeric.c
parentf7c0abeaeaba157b6535b397a4fd551e204608d3 (diff)
downloadruby-fc9e0302ea6756e0ea95dbc11216a3a776ad16a6.tar.gz
complex.c: optimize zero check for Float
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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