瀏覽代碼

fix update fix

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;
             return;
 
 
         case cJSON_String:
         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);
                 compose_patch(patches, (const unsigned char*)"replace", path, NULL, to);
             }
             }