fixed a warning

This commit is contained in:
Guenter Obiltschnig 2017-11-10 08:51:22 +01:00
parent 6fef7a3ae0
commit 6ab7e11c16

View File

@ -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<std::streamoff>(getCompressedSize());
}
@ -494,7 +494,7 @@ inline std::streamoff ZipLocalFileHeader::getDataStartPos() const
inline std::streamoff ZipLocalFileHeader::getDataEndPos() const
{
return getDataStartPos()+getCompressedSize();
return getDataStartPos()+static_cast<std::streamoff>(getCompressedSize());
}