diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-09 07:05:37 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-09 07:05:37 +0000 |
commit | fc9e0302ea6756e0ea95dbc11216a3a776ad16a6 (patch) | |
tree | d92ebe56e6e702b77db3c8c6693cafd1c41435c8 /numeric.c | |
parent | f7c0abeaeaba157b6535b397a4fd551e204608d3 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |