diff --git a/3party/Alohalytics/src/cpp/alohalytics.cc b/3party/Alohalytics/src/cpp/alohalytics.cc index 7b51d047ad..5b0afa0b1b 100644 --- a/3party/Alohalytics/src/cpp/alohalytics.cc +++ b/3party/Alohalytics/src/cpp/alohalytics.cc @@ -87,7 +87,7 @@ void Stats::GzipAndArchiveFileInTheQueue(const std::string & in_file, const std: || file_size > std::numeric_limits::max()) { throw std::out_of_range("File size is out of range."); } - buffer.resize(data_offset + file_size); + buffer.resize(data_offset + size_t(file_size)); fi.read(&buffer[data_offset], static_cast(file_size)); } {