Index: src/OFZIPArchive.m ================================================================== --- src/OFZIPArchive.m +++ src/OFZIPArchive.m @@ -239,14 +239,14 @@ initWithFile: _file] autorelease]; if (![localFileHeader matchesEntry: entry]) @throw [OFInvalidFormatException exception]; - if (localFileHeader->_minVersion > 20) { + if ((localFileHeader->_minVersion & 0xFF) > 20) { OFString *version = [OFString stringWithFormat: @"%u.%u", - localFileHeader->_minVersion / 10, - localFileHeader->_minVersion % 10]; + (localFileHeader->_minVersion & 0xFF) / 10, + (localFileHeader->_minVersion & 0xFF) % 10]; @throw [OFUnsupportedVersionException exceptionWithVersion: version]; }