%f conversion bug fix

Submitted by: Henrik Eriksson <henrik.eriksson@axis.com>
This commit is contained in:
Ulf Möller 2001-02-27 23:59:18 +00:00
parent 06a2b07bb0
commit bf401a2aef

View file

@ -640,7 +640,7 @@ fmtfp(
(caps ? "0123456789ABCDEF"
: "0123456789abcdef")[fracpart % 10];
fracpart = (fracpart / 10);
} while (fracpart && (fplace < 20));
} while (fplace < max);
if (fplace == 20)
fplace--;
fconvert[fplace] = 0;