about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/internal/floatscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c
index ae098526..278bf250 100644
--- a/src/internal/floatscan.c
+++ b/src/internal/floatscan.c
@@ -111,7 +111,7 @@ static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int po
 		} else {
 			dc++;
 			if (c!='0') {
-				lnz = dc;
+				lnz = (KMAX-4)*9;
 				x[KMAX-4] |= 1;
 			}
 		}