1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-19 08:31:11 +00:00

Merge pull request #1050 from TomHarte/ByteLengthWarning

Resolve release-build byte length warning
This commit is contained in:
Thomas Harte 2022-06-16 11:16:37 -04:00 committed by GitHub
commit 60daf9678f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,9 @@ void IPF::add_unencoded_data(std::vector<Storage::Disk::PCMSegment> &track, Time
segment.length_of_a_bit = bit_length;
// Length appears to be in pre-encoded bits; double that to get encoded bits.
#ifndef NDEBUG
const auto byte_length = (num_bits + 7) >> 3;
#endif
segment.data.reserve(num_bits * 16);
auto encoder = Storage::Encodings::MFM::GetMFMEncoder(segment.data);