From d04dc49c3d1ed3d675ba5bfe448fec94ee811615 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Tue, 4 Sep 2018 17:23:39 -0230 Subject: [PATCH] Fix signed/unsigned warning. --- src/common/ZipHandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/ZipHandler.cxx b/src/common/ZipHandler.cxx index ab8ef1773..049eb86d3 100644 --- a/src/common/ZipHandler.cxx +++ b/src/common/ZipHandler.cxx @@ -289,8 +289,8 @@ void ZipHandler::ZipFile::readEcd() throw ZipError::FILE_ERROR; // Find the ECD signature - size_t offset; - for(offset = buflen - EcdReader::minimumLength(); offset >= 0; --offset) + Int32 offset; + for(offset = Int32(buflen - EcdReader::minimumLength()); offset >= 0; --offset) { EcdReader reader(buffer.get() + offset); if(reader.signatureCorrect() && ((reader.totalLength() + offset) <= buflen))