Skip to content

Commit

Permalink
Clear conversion wanrings under MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Aug 20, 2018
1 parent 37828ff commit 2f906a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gzip.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 2f906a0

Please sign in to comment.