From fc43b14829a82d1a09ea30b8557ad69ae8a5fa41 Mon Sep 17 00:00:00 2001 From: Loo Rong Jie Date: Wed, 27 Jun 2018 05:10:08 -0700 Subject: Use %zu to print size_t `estimated_size_` and `kMaximumOutputSize` are in `size_t` (`unsigned long long`) for 64-bit processor, but `%lu` only accept `unsigned long`. `%zu` will handle `size_t` for 32-bit and 64-bit processors correctly. Closes #5473. PiperOrigin-RevId: 202291659 --- third_party/ijar/zip.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'third_party/ijar') diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc index 93136e5b17..3bc66b5ef8 100644 --- a/third_party/ijar/zip.cc +++ b/third_party/ijar/zip.cc @@ -1078,8 +1078,8 @@ int OutputZipFile::FinishFile(size_t filelength, bool compress, bool OutputZipFile::Open() { if (estimated_size_ > kMaximumOutputSize) { fprintf(stderr, - "Uncompressed input jar has size %lu, " - "which exceeds the maximum supported output size %lu.\n" + "Uncompressed input jar has size %zu, " + "which exceeds the maximum supported output size %zu.\n" "Assuming that ijar will be smaller and hoping for the best.\n", estimated_size_, kMaximumOutputSize); estimated_size_ = kMaximumOutputSize; -- cgit v1.2.3