ObjFW  Diff

Differences From Artifact [65a1aa4c22]:

To Artifact [cf738fc904]:


511
512
513
514
515
516
517

518

519

520
521
522
523
524
525
526
511
512
513
514
515
516
517
518

519
520
521
522
523
524
525
526
527
528







+
-
+

+








	if (_stream == nil)
		@throw [OFNotOpenException exceptionWithObject: self];

	if (_atEndOfStream)
		return 0;

#if SIZE_MAX >= UINT64_MAX
	if (sizeof(length) >= sizeof(uint64_t) && length > UINT64_MAX)
	if (length > UINT64_MAX)
		@throw [OFOutOfRangeException exception];
#endif

	if ((uint64_t)length > _toRead)
		length = (size_t)_toRead;

	ret = [_decompressedStream readIntoBuffer: buffer
					   length: length];