summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_format_7zip.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-11-07 20:32:26 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-11-07 20:32:26 +0900
commit225ae392e80cb728c9f1e87e59930ea58e397bda (patch)
tree026fdeebeb86aca135a29ca3d9dc0a649620db95 /libarchive/archive_read_support_format_7zip.c
parentec10aecac2db02763b39cdb91339e1ad83563657 (diff)
downloadlibarchive-225ae392e80cb728c9f1e87e59930ea58e397bda.tar.gz
Fix build failure without zlib and liblzo.
Diffstat (limited to 'libarchive/archive_read_support_format_7zip.c')
-rw-r--r--libarchive/archive_read_support_format_7zip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libarchive/archive_read_support_format_7zip.c b/libarchive/archive_read_support_format_7zip.c
index 6a0a29d3..194b8d51 100644
--- a/libarchive/archive_read_support_format_7zip.c
+++ b/libarchive/archive_read_support_format_7zip.c
@@ -736,7 +736,8 @@ archive_read_format_7zip_read_data(struct archive_read *a,
/* Update checksum */
if ((zip->entry->flg & CRC32_IS_SET) && bytes)
- zip->entry_crc32 = crc32(zip->entry_crc32, *buff, (uInt)bytes);
+ zip->entry_crc32 = crc32(zip->entry_crc32, *buff,
+ (unsigned)bytes);
/* If we hit the end, swallow any end-of-data marker. */
if (zip->end_of_entry) {
@@ -2688,7 +2689,7 @@ header_bytes(struct archive_read *a, size_t rbytes)
}
/* Update checksum */
- zip->header_crc32 = crc32(zip->header_crc32, p, (uInt)rbytes);
+ zip->header_crc32 = crc32(zip->header_crc32, p, (unsigned)rbytes);
return (p);
}