From 2f906a031bf723f345d38d9fb9665c7b14f90faf Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 20 Aug 2018 14:01:05 -0400 Subject: [PATCH] Clear conversion wanrings under MSVC --- gzip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gzip.cpp b/gzip.cpp index 655ee960..ade1d422 100644 --- a/gzip.cpp +++ b/gzip.cpp @@ -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((GetDeflateLevel() == 1) ? + FAST : ((GetDeflateLevel() == 9) ? SLOW : 0)); AttachedTransformation()->Put(extra); AttachedTransformation()->Put(GZIP_OS_CODE);