diff --git a/cJSON.c b/cJSON.c index 9125de4be2b0d68fc80be18549d1aa8621a7ba64..960b398131cbf2061e047bd31ea7d1cc9451b43c 100644 --- a/cJSON.c +++ b/cJSON.c @@ -431,11 +431,6 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out { length = sprintf((char*)number_buffer, "null"); } - /* This checks for negative zero */ - else if (d == 0) - { - length = sprintf((char*)number_buffer, "0"); - } else { /* Try 15 decimal places of precision to avoid nonsignificant nonzero digits */