diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-15 22:58:46 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-15 22:58:46 +0000 |
commit | 7a71dff0bf2a8b701ae05acced62c99fed46c233 (patch) | |
tree | 6eafb8c79a13d891ed20012ea1449e17f8dcf85e /bignum.c | |
parent | d25a5d9aec7de965921c3d798929b2dfe9a1d2ea (diff) | |
download | ruby-7a71dff0bf2a8b701ae05acced62c99fed46c233.tar.gz |
avoid signbit() and adjust indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1233,10 +1233,10 @@ rb_big2dbl(VALUE x) if (isinf(d)) { rb_warning("Bignum out of Float range"); - if (signbit(d)) - d = -HUGE_VAL; + if (d < 0.0) + d = -HUGE_VAL; else - d = HUGE_VAL; + d = HUGE_VAL; } return d; } |