Skip to content
Snippets Groups Projects
Commit d26e0df32d37 authored by Alanscut's avatar Alanscut
Browse files

fix error C2124 in visual studio

parent f619dbf013ac
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,10 @@
#define isnan(d) (d != d)
#endif
#ifndef NAN
#define NAN 0.0/0.0
#endif
typedef struct {
const unsigned char *json;
size_t position;
......@@ -102,7 +106,7 @@
{
if (!cJSON_IsNumber(item))
{
return 0.0/0.0;
return NAN;
}
return item->valuedouble;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment