mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 07:31:15 +00:00
Properly handle partial bytes.
This commit is contained in:
parent
58d10943ed
commit
3e0b7d71d4
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user