]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use uintmax_t with %ju
authorTim Kientzle <kientzle@gmail.com>
Sat, 16 Jul 2011 21:12:57 +0000 (17:12 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 16 Jul 2011 21:12:57 +0000 (17:12 -0400)
SVN-Revision: 3484

libarchive/archive_write_set_compression_xz.c

index f82f6db62e23655f69415edff2e166fc6f582213..c08727a73200ce3f5c9ba07eac1f5b3434047437 100644 (file)
@@ -421,8 +421,8 @@ drive_compressor(struct archive_write *a, struct private_data *state, int finish
                        archive_set_error(&a->archive, ENOMEM,
                            "lzma compression error: "
                            "%ju MiB would have been needed",
-                           (lzma_memusage(&(state->stream)) + 1024 * 1024 -1)
-                           / (1024 * 1024));
+                           (uintmax_t)((lzma_memusage(&(state->stream)) + 1024 * 1024 -1)
+                               / (1024 * 1024)));
                        return (ARCHIVE_FATAL);
                default:
                        /* Any other return value indicates an error. */