提交 186cce3e 编写于 作者: M Max Bruckner

Fix -Wcomma

上级 6c9f76c1
......@@ -2560,16 +2560,18 @@ CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * cons
case cJSON_Array:
{
cJSON *a_element = NULL;
cJSON *b_element = NULL;
for (a_element = a->child, b_element = b->child;
(a_element != NULL) && (b_element != NULL);
a_element = a_element->next, b_element = b_element->next)
cJSON *a_element = a->child;
cJSON *b_element = b->child;
for (; (a_element != NULL) && (b_element != NULL);)
{
if (!cJSON_Compare(a_element, b_element, case_sensitive))
{
return false;
}
a_element = a_element->next;
b_element = b_element->next;
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册