improve compare_double function
This commit is contained in:
4
cJSON.h
4
cJSON.h
@@ -138,8 +138,8 @@ typedef int cJSON_bool;
|
||||
#endif
|
||||
|
||||
/* Precision of double variables comparison */
|
||||
#ifndef CJSON_DOUBLE_PRECIION
|
||||
#define CJSON_DOUBLE_PRECIION .00001
|
||||
#ifndef CJSON_DOUBLE_PRECISION
|
||||
#define CJSON_DOUBLE_PRECISION .0000000000000001
|
||||
#endif
|
||||
|
||||
/* returns the version of cJSON as a string */
|
||||
|
||||
Reference in New Issue
Block a user