diff options
author | Maxim Pimenov <m@maps.me> | 2019-05-14 20:17:52 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-05-15 13:35:08 +0300 |
commit | c11c41d67738500b0d1eeea7170a775441578cae (patch) | |
tree | 0f888fdd6ec1cef7baa4e32cde00d6dd608461e2 /platform | |
parent | 06978f4585c463e97db42f96e7140616061939c3 (diff) |
Fixed some warnings.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/chunks_download_strategy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/chunks_download_strategy.cpp b/platform/chunks_download_strategy.cpp index 3a44d20d2e..a3a90ae3e2 100644 --- a/platform/chunks_download_strategy.cpp +++ b/platform/chunks_download_strategy.cpp @@ -41,7 +41,7 @@ ChunksDownloadStrategy::GetChunk(RangeT const & range) void ChunksDownloadStrategy::InitChunks(int64_t fileSize, int64_t chunkSize, ChunkStatusT status) { - m_chunks.reserve(fileSize / chunkSize + 2); + m_chunks.reserve(static_cast<size_t>(fileSize / chunkSize + 2)); for (int64_t i = 0; i < fileSize; i += chunkSize) m_chunks.push_back(ChunkT(i, status)); m_chunks.push_back(ChunkT(fileSize, CHUNK_AUX)); @@ -105,7 +105,7 @@ int64_t ChunksDownloadStrategy::LoadOrInitChunks(string const & fName, int64_t f // Load chunks. uint64_t const size = src.Size(); int const stSize = sizeof(ChunkT); - size_t const count = size / stSize; + auto const count = static_cast<size_t>(size / stSize); ASSERT_EQUAL(size, stSize * count, ()); m_chunks.resize(count); |