summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-07 10:31:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-07 10:31:35 +0000
commitff84827eb6022ed208fb21a8e41ba30dd713ea2f (patch)
tree8b46713ea9ea4443fcce95f180c0df4ed2b8d1df /bignum.c
parent0df9d81534a2fdf98e6ad7427c7f627deed83550 (diff)
* bignum.c (dbl2big): A condition simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index cfd8a0a820..d3c0f7747b 100644
--- a/bignum.c
+++ b/bignum.c
@@ -4749,7 +4749,7 @@ dbl2big(double d)
rb_raise(rb_eFloatDomainError, "NaN");
}
- while (!POSFIXABLE(u) || 0 != (long)u) {
+ while (1.0 <= u) {
u /= (double)(BIGRAD);
i++;
}