Revert "Fix #26: Use long double literal for 1e60"

This reverts commit 3ea491c0a603f50ca0fb2505badd332fbd141f75.
This commit is contained in:
Max Bruckner 2016-11-08 00:53:16 +07:00
parent b4d728d018
commit a148520ffb

View File

@ -348,7 +348,7 @@ static char *print_number(const cJSON *item, printbuffer *p)
{
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);
}