summaryrefslogtreecommitdiff
path: root/pr/src/misc/prdtoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/src/misc/prdtoa.c')
-rw-r--r--pr/src/misc/prdtoa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/misc/prdtoa.c b/pr/src/misc/prdtoa.c
index b7432a2f..07853967 100644
--- a/pr/src/misc/prdtoa.c
+++ b/pr/src/misc/prdtoa.c
@@ -3067,7 +3067,7 @@ dtoa
goto no_digits;
goto one_digit;
}
- for(i = 1;; i++, dval(d) *= 10.) {
+ for(i = 1; i <= k+1; i++, dval(d) *= 10.) {
L = (Long)(dval(d) / ds);
dval(d) -= L*ds;
#ifdef Check_FLT_ROUNDS