Temporary lifespan doesn't work intuitively. Fix it.

This commit is contained in:
David Given
2019-03-05 19:17:06 +01:00
parent 94fb10eb02
commit 8212adf84f
4 changed files with 14 additions and 23 deletions

View File

@@ -73,7 +73,8 @@ SectorVector BrotherDecoder::decodeToSectors(const RawRecordVector& rawRecords,
if (rawrecord->data.size() < (32+32))
break;
ByteReader br(toBytes(ii+32, ii+64));
const auto& by = toBytes(ii+32, ii+64);
ByteReader br(by);
nextTrack = decode_header_gcr(br.read_be16());
nextSector = decode_header_gcr(br.read_be16());