ObjFW  Diff

Differences From Artifact [8bbe969b1a]:

To Artifact [b1f97cb82f]:


237
238
239
240
241
242
243
244

245
246
247


248
249
250
251
252
253
254
237
238
239
240
241
242
243

244
245


246
247
248
249
250
251
252
253
254







-
+

-
-
+
+







		     whence: SEEK_SET];
	localFileHeader = [[[OFZIPArchive_LocalFileHeader alloc]
	    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];
	}

	ret = [[OFZIPArchive_FileStream alloc]
	    initWithArchiveFile: _path