ObjFW  Check-in [b01c12cecd]

Overview
Comment:utils/ofarc: Remove pointless range check

The range check was a leftover from when different types were used.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b01c12cecde485da8f9ed029df7ee896b701f60e646e47b7103c53f3265833ff
User & Date: js on 2022-10-30 18:30:51
Other Links: manifest | tags
Context
2022-10-30
18:58
Remove AppleTalk support again check-in: 0b4f713964 user: js tags: trunk
18:30
utils/ofarc: Remove pointless range check check-in: b01c12cecd user: js tags: trunk
18:27
utils/objfw-new: Fix signedness bug check-in: 39f75cb424 user: js tags: trunk
Changes

Modified utils/ofarc/ZIPArchive.m from [6652b0186c] to [cefb3af267].

435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
			[OFStdOut writeString: OF_LOCALIZED(@"adding_file",
			    @"Adding %[file]...",
			    @"file", fileName)];

		entry = [OFMutableZIPArchiveEntry entryWithFileName: fileName];

		size = (isDirectory ? 0 : attributes.fileSize);
		if (size < 0 || size > ULLONG_MAX)
			@throw [OFOutOfRangeException exception];

		entry.compressedSize = size;
		entry.uncompressedSize = size;

		entry.compressionMethod =
		    OFZIPArchiveEntryCompressionMethodNone;
		entry.modificationDate = attributes.fileModificationDate;








<
<
<







435
436
437
438
439
440
441



442
443
444
445
446
447
448
			[OFStdOut writeString: OF_LOCALIZED(@"adding_file",
			    @"Adding %[file]...",
			    @"file", fileName)];

		entry = [OFMutableZIPArchiveEntry entryWithFileName: fileName];

		size = (isDirectory ? 0 : attributes.fileSize);



		entry.compressedSize = size;
		entry.uncompressedSize = size;

		entry.compressionMethod =
		    OFZIPArchiveEntryCompressionMethodNone;
		entry.modificationDate = attributes.fileModificationDate;