From a69ad226397b11f76c9e9c74b45b0c4c4e6788fb Mon Sep 17 00:00:00 2001 From: Debora Grosse Date: Sat, 29 Apr 2017 13:08:10 -0400 Subject: [PATCH] Remove test for negative zero, as -0 is acceptable output --- cJSON.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cJSON.c b/cJSON.c index 9125de4..960b398 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 */ -- GitLab