mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-03 13:28:48 +00:00
correct mistake
This commit is contained in:
1 parent
2d4ad84192
commit
fa8b454552
1 file changed
+1
-1
+1
-1
@@ -1144,7 +1144,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa
|
|||||||
switch (from->type & 0xFF)
|
switch (from->type & 0xFF)
|
||||||
{
|
{
|
||||||
case cJSON_Number:
|
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);
|
compose_patch(patches, (const unsigned char*)"replace", path, NULL, to);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user