summaryrefslogtreecommitdiff
path: root/libarchive
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive')
-rw-r--r--libarchive/archive_read_support_format_zip.c2
-rw-r--r--libarchive/archive_write_set_format_zip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c
index 97a5fc2a..3bd9afdb 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 7a943ac7..252d0af8 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