]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use a macro wrapper on LL literals for compatibility with certain old Windows compilers.
authorTim Kientzle <kientzle@acm.org>
Sun, 26 Apr 2015 04:58:58 +0000 (21:58 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 26 Apr 2015 04:58:58 +0000 (21:58 -0700)
libarchive/archive_write_set_format_zip.c

index e69dc58882697ffd606acc7be8a23a6c2a34d75e..975a4684f2480ed4a0c4a0873511b0b6390d5158 100644 (file)
@@ -1288,8 +1288,8 @@ archive_write_zip_close(struct archive_write *a)
        offset_end = zip->written_bytes;
 
        /* If central dir info is too large, write Zip64 end-of-cd */
-       if (offset_end - offset_start > 0xffffffffLL
-           || offset_start > 0xffffffffLL
+       if (offset_end - offset_start > ARCHIVE_LITERAL_LL(0xffffffff)
+           || offset_start > ARCHIVE_LITERAL_LL(0xffffffff)
            || zip->central_directory_entries > 0xffffUL
            || (zip->flags & ZIP_FLAG_FORCE_ZIP64)) {
          /* Zip64 end-of-cd record */