Skip to content

Commit

Permalink
Merge pull request #484 from sappo/master
Browse files Browse the repository at this point in the history
Problem: WError error on macosx because NAN is a float
  • Loading branch information
Alanscut authored Aug 21, 2020
2 parents cf97c6f + 4578d3a commit 3fb9d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item)
{
if (!cJSON_IsNumber(item))
{
return NAN;
return (double) NAN;
}

return item->valuedouble;
Expand Down

0 comments on commit 3fb9d92

Please sign in to comment.