diff --git a/zdeflate.cpp b/zdeflate.cpp index bdcd7ba4..3fad0842 100644 --- a/zdeflate.cpp +++ b/zdeflate.cpp @@ -419,7 +419,7 @@ inline void Deflator::InsertString(unsigned int start) { unsigned int hash = ComputeHash(m_byteBuffer + start); m_prev[start & DMASK] = m_head[hash]; - m_head[hash] = start; + m_head[hash] = static_cast(start); } void Deflator::ProcessBuffer()