提交 fa8b4545 编写于 作者: A Alanscut

correct mistake

上级 2d4ad841
......@@ -1144,7 +1144,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa
switch (from->type & 0xFF)
{
case cJSON_Number:
if ((from->valueint != to->valueint) || (compare_double(from->valuedouble, to->valuedouble)))
if ((from->valueint != to->valueint) || !compare_double(from->valuedouble, to->valuedouble))
{
compose_patch(patches, (const unsigned char*)"replace", path, NULL, to);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册