提交 a69ad226 编写于 作者: D Debora Grosse

Remove test for negative zero, as -0 is acceptable output

上级 3fc9bc06
......@@ -431,11 +431,6 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out
{
length = sprintf((char*)number_buffer, "null");
}
/* This checks for negative zero */
else if (d == 0)
{
length = sprintf((char*)number_buffer, "0");
}
else
{
/* Try 15 decimal places of precision to avoid nonsignificant nonzero digits */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册