Fix signed/unsigned warning.

This commit is contained in:
Stephen Anthony 2018-09-04 17:23:39 -02:30
parent e625a2f8ab
commit d04dc49c3d
1 changed files with 2 additions and 2 deletions

View File

@ -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))