Add size_t cast to resolve VS warning C4334

Resolve C4334: 'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
This commit is contained in:
denisbider 2016-04-20 17:07:44 -06:00
parent f4d8b054b3
commit 2dde105c3f

View File

@ -339,7 +339,7 @@ void Inflator::ProcessInput(bool flush)
m_wrappedAround = false;
m_current = 0;
m_lastFlush = 0;
m_window.New(1 << GetLog2WindowSize());
m_window.New(((size_t) 1) << GetLog2WindowSize());
break;
case WAIT_HEADER:
{