提交 bf401a2a 编写于 作者: U Ulf Möller

%f conversion bug fix

Submitted by: Henrik Eriksson <henrik.eriksson@axis.com>
上级 06a2b07b
...@@ -640,7 +640,7 @@ fmtfp( ...@@ -640,7 +640,7 @@ fmtfp(
(caps ? "0123456789ABCDEF" (caps ? "0123456789ABCDEF"
: "0123456789abcdef")[fracpart % 10]; : "0123456789abcdef")[fracpart % 10];
fracpart = (fracpart / 10); fracpart = (fracpart / 10);
} while (fracpart && (fplace < 20)); } while (fplace < max);
if (fplace == 20) if (fplace == 20)
fplace--; fplace--;
fconvert[fplace] = 0; fconvert[fplace] = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册