Fix clang -Wfloat-equal warning

This commit is contained in:
Paweł Malowany
2019-06-10 10:59:31 +02:00
parent 3c8935676a
commit c9e8a68b00
5 changed files with 26 additions and 6 deletions

View File

@ -137,6 +137,11 @@ typedef int cJSON_bool;
#define CJSON_NESTING_LIMIT 1000
#endif
/* Precision of double variables comparison */
#ifndef CJSON_DOUBLE_PRECIION
#define CJSON_DOUBLE_PRECIION .00001
#endif
/* returns the version of cJSON as a string */
CJSON_PUBLIC(const char*) cJSON_Version(void);