summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 03:29:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-02-09 03:29:23 +0000
commitbcec81835dc263b933f2629aa5329f6c943da60d (patch)
treed9de5eead40ab6380ba7b9fc4b335565e718f6fe /bignum.c
parent8ef071c882218ff2d9f00f51f55e872343776104 (diff)
990209
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@393 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 f553b080bc..170055d912 100644
--- a/bignum.c
+++ b/bignum.c
@@ -395,7 +395,7 @@ dbl2big(d)
VALUE z;
double u = (d < 0)?-d:d;
- while (0 != (long)u) {
+ while (!FIXABLE(u) || 0 != (long)u) {
u /= (double)(BIGRAD);
i++;
}