Browse Source

Fix for warning on dash8 that caused a build failure because of -WError

Bill Hoffman 16 years ago
parent
commit
7fba9849f9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Utilities/cmlibarchive/libarchive/archive_write_set_format_zip.c

+ 2 - 2
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;