Skip to content

Commit

Permalink
Update cJSON.c
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuebao committed Feb 26, 2021
1 parent 74c4e20 commit f1beccc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cJSON/cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -3047,13 +3047,15 @@ CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item)

CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive)
{
int type = a->type & 0xFF;
int type;

if ((a == NULL) || (b == NULL) || cJSON_IsInvalid(a))
{
return false;
}

type = a->type & 0xFF;

if ((a->type & 0xFF) != (b->type & 0xFF))
{
if (((a->type & 0xFF) == cJSON_Int && (b->type & 0xFF) == cJSON_Number) ||
Expand Down

0 comments on commit f1beccc

Please sign in to comment.