diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-06-27 05:10:08 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-27 05:13:08 -0700 |
commit | fc43b14829a82d1a09ea30b8557ad69ae8a5fa41 (patch) | |
tree | e68b6118b69cdebd0cca01afecea4a49b3944090 /third_party/ijar | |
parent | 44646c24f82744603e7b0852db2957ad1c72001e (diff) |
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
Diffstat (limited to 'third_party/ijar')
-rw-r--r-- | third_party/ijar/zip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |