Max Bruckner преди 8 години
родител
ревизия
eb017abe72
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cJSON_Utils.c

+ 1 - 1
cJSON_Utils.c

@@ -914,7 +914,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa
             return;
 
         case cJSON_String:
-            if (strcmp((unsigned char*)from->valuestring, (unsigned char*)to->valuestring) != 0)
+            if (strcmp(from->valuestring, to->valuestring) != 0)
             {
                 compose_patch(patches, (const unsigned char*)"replace", path, NULL, to);
             }