Clear conversion wanrings under MSVC
parent
37828ff0ef
commit
2f906a031b
3
gzip.cpp
3
gzip.cpp
|
|
@ -40,7 +40,8 @@ void Gzip::WritePrestreamHeader()
|
||||||
AttachedTransformation()->Put(DEFLATED);
|
AttachedTransformation()->Put(DEFLATED);
|
||||||
AttachedTransformation()->Put((byte)flags); // general flag
|
AttachedTransformation()->Put((byte)flags); // general flag
|
||||||
AttachedTransformation()->PutWord32(m_filetime, LITTLE_ENDIAN_ORDER); // time stamp
|
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(extra);
|
||||||
AttachedTransformation()->Put(GZIP_OS_CODE);
|
AttachedTransformation()->Put(GZIP_OS_CODE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue