Typo fix.

This commit is contained in:
David Given
2020-04-08 23:37:08 +02:00
parent 30646ccb07
commit 1fd65452c4

View File

@@ -32,7 +32,7 @@ AbstractDecoder::RecordType AmigaDecoder::advanceToNextRecord()
void AmigaDecoder::decodeSectorRecord()
{
const auto& rawbits = readRawBits(AMIGA_RECORD_SIZE*16);
if (rawbits < (AMIGA_RECORD_SIZE*16))
if (rawbits.size() < (AMIGA_RECORD_SIZE*16))
return;
const auto& rawbytes = toBytes(rawbits).slice(0, AMIGA_RECORD_SIZE*2);
const auto& bytes = decodeFmMfm(rawbits).slice(0, AMIGA_RECORD_SIZE);