summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-15 22:58:46 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-15 22:58:46 +0000
commit7a71dff0bf2a8b701ae05acced62c99fed46c233 (patch)
tree6eafb8c79a13d891ed20012ea1449e17f8dcf85e /bignum.c
parentd25a5d9aec7de965921c3d798929b2dfe9a1d2ea (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index 123eca7403..2f8ab20e32 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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;
}