]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
%ju requires uintmax_t
authorTim Kientzle <kientzle@gmail.com>
Sat, 16 Jul 2011 06:53:01 +0000 (02:53 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 16 Jul 2011 06:53:01 +0000 (02:53 -0400)
SVN-Revision: 3481

libarchive/archive_write_add_filter_xz.c

index 3c0905dae685656ca106d94f107ee0602342040f..b0677522455f4c5bbbbdf9d87e9df200875458c1 100644 (file)
@@ -484,8 +484,9 @@ drive_compressor(struct archive_write_filter *f,
                        archive_set_error(f->archive, ENOMEM,
                            "lzma compression error: "
                            "%ju MiB would have been needed",
-                           (lzma_memusage(&(data->stream)) + 1024 * 1024 -1)
-                           / (1024 * 1024));
+                           (uintmax_t)((lzma_memusage(&(data->stream))
+                                   + 1024 * 1024 -1)
+                               / (1024 * 1024)));
                        return (ARCHIVE_FATAL);
                default:
                        /* Any other return value indicates an error. */