From 6ab7e11c16570813d14d6aa3690395071afc5db3 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Fri, 10 Nov 2017 08:51:22 +0100 Subject: [PATCH] fixed a warning --- Zip/include/Poco/Zip/ZipLocalFileHeader.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Zip/include/Poco/Zip/ZipLocalFileHeader.h b/Zip/include/Poco/Zip/ZipLocalFileHeader.h index ddcf19fcf..2ae7b6d3e 100644 --- a/Zip/include/Poco/Zip/ZipLocalFileHeader.h +++ b/Zip/include/Poco/Zip/ZipLocalFileHeader.h @@ -132,7 +132,7 @@ private: void init(const Poco::Path& fileName, ZipCommon::CompressionMethod cm, ZipCommon::CompressionLevel cl); Poco::UInt16 getFileNameLength() const; - + Poco::UInt16 getExtraFieldLength() const; Poco::UInt32 getCRCFromHeader() const; @@ -203,7 +203,7 @@ private: Poco::UInt32 _crc32; Poco::UInt64 _compressedSize; Poco::UInt64 _uncompressedSize; - + friend class ZipStreamBuf; }; @@ -308,7 +308,7 @@ inline std::streamoff ZipLocalFileHeader::getStartPos() const inline void ZipLocalFileHeader::setStartPos(std::streamoff start) { _startPos = start; - _endPos = start + getHeaderSize()+getCompressedSize(); + _endPos = start + getHeaderSize()+static_cast(getCompressedSize()); } @@ -354,7 +354,7 @@ inline void ZipLocalFileHeader::setCompressionLevel(ZipCommon::CompressionLevel { // bit 1 and 2 indicate the level Poco::UInt16 val = static_cast(cl); - val <<= 1; + val <<= 1; Poco::UInt16 mask = 0xfff9; _rawHeader[GENERAL_PURPOSE_POS] = ((_rawHeader[GENERAL_PURPOSE_POS] & mask) | val); } @@ -494,7 +494,7 @@ inline std::streamoff ZipLocalFileHeader::getDataStartPos() const inline std::streamoff ZipLocalFileHeader::getDataEndPos() const { - return getDataStartPos()+getCompressedSize(); + return getDataStartPos()+static_cast(getCompressedSize()); }