diff --git a/platform/chunks_download_strategy.cpp b/platform/chunks_download_strategy.cpp index 57e4a7353e..cd004dcebf 100644 --- a/platform/chunks_download_strategy.cpp +++ b/platform/chunks_download_strategy.cpp @@ -189,7 +189,7 @@ ChunksDownloadStrategy::NextChunk(string & outUrl, RangeT & range) switch (m_chunks[i].m_status) { case CHUNK_FREE: - server->m_chunkIndex = i; + server->m_chunkIndex = static_cast(i); outUrl = server->m_url; range.first = m_chunks[i].m_pos;