fix: Resolve compiler warnings across multiple modules

This commit is contained in:
Matej Kenda
2025-12-17 14:04:42 +01:00
parent b79b07c308
commit 7addcfbc81
80 changed files with 324 additions and 315 deletions

View File

@@ -189,7 +189,7 @@ void ZipUtil::syncDataDescriptor(std::istream & in, bool force64)
ZipDataInfo64 nfo(in, true);
if (nfo.isValid())
{
if (end - start == nfo.getCompressedSize() + 4)
if (static_cast<Poco::UInt64>(end - start) == nfo.getCompressedSize() + 4)
{
in.seekg(-static_cast<int>(ZipDataInfo64::getFullHeaderSize()), std::ios::cur);
if (!in.good()) throw Poco::IOException("Failed to seek on input stream");