From 2dde105c3fea7a92a5ba08e23ab9f6a20dd8e69c Mon Sep 17 00:00:00 2001 From: denisbider Date: Wed, 20 Apr 2016 17:07:44 -0600 Subject: 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?) --- zinflate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zinflate.cpp') diff --git a/zinflate.cpp b/zinflate.cpp index 11cbbff0..9ce7fbe9 100644 --- a/zinflate.cpp +++ b/zinflate.cpp @@ -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: { -- cgit v1.2.1