ObjFW  Check-in [7094055a27]

Overview
Comment:Make GCC happy again
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7094055a275978e21f8ef61295d9afb96db4058799a56e92c61c31135a26ec74
User & Date: js on 2022-08-27 21:42:31
Other Links: manifest | tags
Context
2022-08-27
22:29
OFTarArchiveEntry: Make mode/UID/GID an OFNumber check-in: d281c3198b user: js tags: trunk
21:42
Make GCC happy again check-in: 7094055a27 user: js tags: trunk
21:37
Add OF(Mutable)ArchiveEntry protocol check-in: a325d5a1ee user: js tags: trunk
Changes

Modified src/OFLHAArchive.m from [356333f064] to [42c3ad0bd8].

394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
		toRead =
		    _entry.compressedSize - decompressingStream.bytesConsumed;

		stream = _stream;
	}

	if ([stream isKindOfClass: [OFSeekableStream class]] &&
	    (sizeof(OFStreamOffset) > 4 || toRead != (OFStreamOffset)toRead))
		[(OFSeekableStream *)stream seekToOffset: (OFStreamOffset)toRead
						  whence: OFSeekCurrent];
	else {
		while (toRead > 0) {
			char buffer[512];
			unsigned long long min = toRead;








|







394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
		toRead =
		    _entry.compressedSize - decompressingStream.bytesConsumed;

		stream = _stream;
	}

	if ([stream isKindOfClass: [OFSeekableStream class]] &&
	    toRead < LLONG_MAX && (long long)toRead == (OFStreamOffset)toRead)
		[(OFSeekableStream *)stream seekToOffset: (OFStreamOffset)toRead
						  whence: OFSeekCurrent];
	else {
		while (toRead > 0) {
			char buffer[512];
			unsigned long long min = toRead;