From: Michihiro NAKAJIMA Date: Mon, 13 Oct 2014 02:31:14 +0000 (+0900) Subject: Fix build failure with zlib on Windows. X-Git-Tag: v3.1.900a~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982da0b48919db6adcdddb2efcc8b1e685b9f218;p=thirdparty%2Flibarchive.git Fix build failure with zlib on Windows. --- diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c index 97a5fc2ab..3bd9afdb3 100644 --- a/libarchive/archive_read_support_format_zip.c +++ b/libarchive/archive_read_support_format_zip.c @@ -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 diff --git a/libarchive/archive_write_set_format_zip.c b/libarchive/archive_write_set_format_zip.c index 7a943ac77..252d0af85 100644 --- a/libarchive/archive_write_set_format_zip.c +++ b/libarchive/archive_write_set_format_zip.c @@ -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