Clear conversion wanrings under MSVC

This commit is contained in:
Jeffrey Walton 2018-08-20 14:01:05 -04:00
parent 37828ff0ef
commit 2f906a031b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -40,7 +40,8 @@ void Gzip::WritePrestreamHeader()
AttachedTransformation()->Put(DEFLATED);
AttachedTransformation()->Put((byte)flags); // general flag
AttachedTransformation()->PutWord32(m_filetime, LITTLE_ENDIAN_ORDER); // time stamp
byte extra = (GetDeflateLevel() == 1) ? FAST : ((GetDeflateLevel() == 9) ? SLOW : 0);
byte extra = static_cast<byte>((GetDeflateLevel() == 1) ?
FAST : ((GetDeflateLevel() == 9) ? SLOW : 0));
AttachedTransformation()->Put(extra);
AttachedTransformation()->Put(GZIP_OS_CODE);