cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit a148520ffb0a287ef61e6ba3ff8161be5c844bf5
parent b4d728d01834b04bb01c6c7bdd42e58017d41c40
Author: Max Bruckner <max@maxbruckner.de>
Date:   Tue,  8 Nov 2016 00:53:16 +0700

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

This reverts commit 3ea491c0a603f50ca0fb2505badd332fbd141f75.

Diffstat:
McJSON.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cJSON.c b/cJSON.c @@ -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); }