Index: third_party/zlib/google/zip_reader.cc |
diff --git a/third_party/zlib/google/zip_reader.cc b/third_party/zlib/google/zip_reader.cc |
index 339eb1141c7b4e2103e60324b3ff150b0b7bda91..a1dddfb85388a429ffc2e1308a4c39be57f87b5d 100644 |
--- a/third_party/zlib/google/zip_reader.cc |
+++ b/third_party/zlib/google/zip_reader.cc |
@@ -364,8 +364,9 @@ bool ZipReader::ExtractCurrentEntryToString( |
// correct. However, we need to assume that the uncompressed size could be |
// incorrect therefore this function needs to read as much data as possible. |
std::string contents; |
- contents.reserve(std::min<size_t>( |
- max_read_bytes, current_entry_info()->original_size())); |
+ contents.reserve(static_cast<size_t>(std::min( |
+ static_cast<int64>(max_read_bytes), |
+ current_entry_info()->original_size()))); |
bool success = true; // This becomes false when something bad happens. |
char buf[internal::kZipBufSize]; |