ObjFW  Diff

Differences From Artifact [b00facb75e]:

To Artifact [97efb45aaf]:


412
413
414
415
416
417
418
419

420
421

422
423
424
425
426
427
428
412
413
414
415
416
417
418

419
420

421
422
423
424
425
426
427
428







-
+

-
+







	_CRC16 = OFCRC16(_CRC16, buffer, ret);

	if (_toRead == 0) {
		_atEndOfStream = true;

		if (_CRC16 != _entry.CRC16) {
			OFString *actualChecksum = [OFString stringWithFormat:
			    @"%04" PRIX16, _CRC16];
			    @"%04" @PRIX16, _CRC16];
			OFString *expectedChecksum = [OFString stringWithFormat:
			    @"%04" PRIX16, _entry.CRC16];
			    @"%04" @PRIX16, _entry.CRC16];

			@throw [OFChecksumMismatchException
			    exceptionWithActualChecksum: actualChecksum
				       expectedChecksum: expectedChecksum];
		}
	}