From a148520ffb0a287ef61e6ba3ff8161be5c844bf5 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Tue, 8 Nov 2016 00:53:16 +0700 Subject: [PATCH] Revert "Fix #26: Use long double literal for 1e60" This reverts commit 3ea491c0a603f50ca0fb2505badd332fbd141f75. --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 3bba46d..0fd8c3e 100644 --- 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); }