Explorar o código

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

This reverts commit 3ea491c0a603f50ca0fb2505badd332fbd141f75.
Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
a148520ffb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cJSON.c

+ 1 - 1
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);
             }