From ffefd63197cab974e418648499c9f64402fd39ef Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Thu, 6 Aug 2015 21:54:27 +0300 Subject: [PATCH] [alohalytics] Minor warning fix. --- 3party/Alohalytics/src/cpp/alohalytics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } {