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
diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc index 93136e5..3bc66b5 100644 --- a/third_party/ijar/zip.cc +++ b/third_party/ijar/zip.cc
@@ -1078,8 +1078,8 @@ 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;