소스 검색

Merge pull request #417 from zjuchenyuan/patch-1

Update cJSON_Utils.c to avoid ‘CJSON_DOUBLE_PRECIION’ undeclared
Alanscut 5 년 전
부모
커밋
69bc9ccc20
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cJSON_Utils.c

+ 1 - 1
cJSON_Utils.c

@@ -109,7 +109,7 @@ static int compare_strings(const unsigned char *string1, const unsigned char *st
 /* securely comparison of floating-point variables */
 static cJSON_bool compare_double(double a, double b)
 {
-    return (fabs(a - b) <= a * CJSON_DOUBLE_PRECIION);
+    return (fabs(a - b) <= a * CJSON_DOUBLE_PRECISION);
 }