Skip to content

Commit

Permalink
update cJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Jan 30, 2020
1 parent 40b4ef8 commit c78625b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cJSON/cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out
}

/* This checks for NaN and Infinity */
if (!compare_double(d * 0, 0))
if ((d * 0) != 0)
{
length = sprintf((char*)number_buffer, "null");
}
Expand Down

0 comments on commit c78625b

Please sign in to comment.