Explorar o código

Add cast to fix pointer type assignment warning

Nur Monson %!s(int64=12) %!d(string=hai) anos
pai
achega
c88000c77a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Tools/Dependencies/unzip11/zip.c

+ 1 - 1
Tools/Dependencies/unzip11/zip.c

@@ -1245,7 +1245,7 @@ extern int ZEXPORT zipOpenNewFileInZip4_64 (zipFile file, const char* filename,
         unsigned char bufHead[RAND_HEAD_LEN];
         unsigned char bufHead[RAND_HEAD_LEN];
         unsigned int sizeHead;
         unsigned int sizeHead;
         zi->ci.encrypt = 1;
         zi->ci.encrypt = 1;
-        zi->ci.pcrc_32_tab = get_crc_table();
+        zi->ci.pcrc_32_tab = (const unsigned long*)get_crc_table();
         /*init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);*/
         /*init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);*/
 
 
         sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting);
         sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting);