mirror of https://github.com/stella-emu/stella.git
Fix signed/unsigned warning.
This commit is contained in:
parent
e625a2f8ab
commit
d04dc49c3d
|
@ -289,8 +289,8 @@ void ZipHandler::ZipFile::readEcd()
|
||||||
throw ZipError::FILE_ERROR;
|
throw ZipError::FILE_ERROR;
|
||||||
|
|
||||||
// Find the ECD signature
|
// Find the ECD signature
|
||||||
size_t offset;
|
Int32 offset;
|
||||||
for(offset = buflen - EcdReader::minimumLength(); offset >= 0; --offset)
|
for(offset = Int32(buflen - EcdReader::minimumLength()); offset >= 0; --offset)
|
||||||
{
|
{
|
||||||
EcdReader reader(buffer.get() + offset);
|
EcdReader reader(buffer.get() + offset);
|
||||||
if(reader.signatureCorrect() && ((reader.totalLength() + offset) <= buflen))
|
if(reader.signatureCorrect() && ((reader.totalLength() + offset) <= buflen))
|
||||||
|
|
Loading…
Reference in New Issue