We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37828ff commit 2f906a0Copy full SHA for 2f906a0
gzip.cpp
@@ -40,7 +40,8 @@ void Gzip::WritePrestreamHeader()
40
AttachedTransformation()->Put(DEFLATED);
41
AttachedTransformation()->Put((byte)flags); // general flag
42
AttachedTransformation()->PutWord32(m_filetime, LITTLE_ENDIAN_ORDER); // time stamp
43
- byte extra = (GetDeflateLevel() == 1) ? FAST : ((GetDeflateLevel() == 9) ? SLOW : 0);
+ byte extra = static_cast<byte>((GetDeflateLevel() == 1) ?
44
+ FAST : ((GetDeflateLevel() == 9) ? SLOW : 0));
45
AttachedTransformation()->Put(extra);
46
AttachedTransformation()->Put(GZIP_OS_CODE);
47
0 commit comments