mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-19 19:50:56 +00:00
Revert "Fix #26: Use long double literal for 1e60"
This reverts commit 3ea491c0a6.
This commit is contained in:
1 parent
b4d728d018
commit
a148520ffb
1 file changed
+1
-1
@@ -348,7 +348,7 @@ static char *print_number(const cJSON *item, printbuffer *p)
|
|||||||
{
|
{
|
||||||
sprintf(str, "null");
|
sprintf(str, "null");
|
||||||
}
|
}
|
||||||
else if ((fabs(floor(d) - d) <= DBL_EPSILON) && (fabs(d) < 1.0e60L))
|
else if ((fabs(floor(d) - d) <= DBL_EPSILON) && (fabs(d) < 1.0e60))
|
||||||
{
|
{
|
||||||
sprintf(str, "%.0f", d);
|
sprintf(str, "%.0f", d);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user