Cleared signed/unsigned warnings under Visual Studio

pull/35/head
Jeffrey Walton 2015-07-20 01:16:02 -04:00
parent 417994ca6a
commit 821d467b9e
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ void ZlibCompressor::WritePrestreamHeader()
m_adler32.Restart(); m_adler32.Restart();
byte cmf = DEFLATE_METHOD | ((GetLog2WindowSize()-8) << 4); byte cmf = DEFLATE_METHOD | ((GetLog2WindowSize()-8) << 4);
byte flags = GetCompressionLevel() << 6; byte flags = GetCompressionLevel() << 6;
AttachedTransformation()->PutWord16(RoundUpToMultipleOf(cmf*256+flags, 31)); AttachedTransformation()->PutWord16(
static_cast<word16>(RoundUpToMultipleOf(cmf*256U+flags, 31U)));
} }
void ZlibCompressor::ProcessUncompressedData(const byte *inString, size_t length) void ZlibCompressor::ProcessUncompressedData(const byte *inString, size_t length)