1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-30 07:29:31 +00:00

Properly handle partial bytes.

This commit is contained in:
Thomas Harte 2022-01-01 19:09:19 -05:00
parent 58d10943ed
commit 3e0b7d71d4

View File

@ -314,7 +314,7 @@ std::shared_ptr<Track> IPF::get_track_at_position([[maybe_unused]] Track::Addres
segment.data.reserve(byte_length * 16);
auto encoder = Storage::Encodings::MFM::GetMFMEncoder(segment.data);
for(size_t c = 0; c < (length >> 3); c++) {
for(size_t c = 0; c < length; c += 8) {
encoder->add_byte(file_.get8());
}