]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure with zlib on Windows.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 13 Oct 2014 02:31:14 +0000 (11:31 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 13 Oct 2014 02:31:14 +0000 (11:31 +0900)
libarchive/archive_read_support_format_zip.c
libarchive/archive_write_set_format_zip.c

index 97a5fc2ab28c3d8fd794e7e663efe7c599572098..3bd9afdb34cff3812d5ef4ee244374b33fac06a5 100644 (file)
@@ -325,7 +325,7 @@ crypt_derive_key_sha1(const void *p, int size, unsigned char *key,
 static unsigned long
 real_crc32(unsigned long crc, const void *buff, size_t len)
 {
-       return crc32(crc, buff, len);
+       return crc32(crc, buff, (uInt)len);
 }
 
 static unsigned long
index 7a943ac7725787e0ee3d9787e278cf0a7107c536..252d0af8500f015038e951b3d380caa085a026a6 100644 (file)
@@ -232,7 +232,7 @@ cd_alloc(struct zip *zip, size_t length)
 static unsigned long
 real_crc32(unsigned long crc, const void *buff, size_t len)
 {
-       return crc32(crc, buff, len);
+       return crc32(crc, buff, (uInt)len);
 }
 
 static unsigned long