Merge pull request #484 from sappo/master

Problem: WError error on macosx because NAN is a float
This commit is contained in:
Alan Wang 2020-08-21 21:30:19 +08:00 committed by GitHub
commit 3fb9d929e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;