Skip to content
Snippets Groups Projects
Commit 44d29c9446b1 authored by Kevin Sapper's avatar Kevin Sapper
Browse files

Problem: WError error on macosx because NAN is a float

Solution: Add explicit cast from NAN to double
parent 29641daa261d
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
{ {
if (!cJSON_IsNumber(item)) if (!cJSON_IsNumber(item))
{ {
return NAN; return (double) NAN;
} }
return item->valuedouble; return item->valuedouble;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment