summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c b/Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c
index 6cbc03c..d4e6f5b 100644
--- a/Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c
+++ b/Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c
@@ -399,8 +399,8 @@ archive_write_zip_data(struct archive_write *a, const void *buff, size_t s)
struct zip *zip = a->format_data;
struct zip_file_header_link *l = zip->central_directory_end;
- if (s > zip->remaining_data_bytes)
- s = zip->remaining_data_bytes;
+ if (s > (size_t)zip->remaining_data_bytes)
+ s = (size_t)zip->remaining_data_bytes;
if (s == 0) return 0;