mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
correct mistake
This commit is contained in:
parent
2d4ad84192
commit
fa8b454552
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user