summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-28 07:55:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-28 07:55:30 +0000
commit2344efc3835c3226fa06a85e6f3b1871415b8ad1 (patch)
treedd3d4a93fd65901cd3b8e361717a6b694ef4be2b /bignum.c
parent1f25ed85a9a066ecff452df1512a42de04666053 (diff)
990128
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@382 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 6b0e787..3671dae 100644
--- a/bignum.c
+++ b/bignum.c
@@ -396,7 +396,7 @@ rb_dbl2big(d)
VALUE z;
double u = (d < 0)?-d:d;
- while (0 != (long)u) {
+ while (!POSFIXABLE(u) || 0 != (long)u) {
u /= (double)(BIGRAD);
i++;
}