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

Ensures WOZ2 behaviour even if type_ has an invalid value.

This pleases GCC 7.
This commit is contained in:
Thomas Harte 2020-07-24 21:56:20 -04:00
parent 8af35bc6bb
commit b961665985

View File

@ -166,6 +166,7 @@ std::shared_ptr<Track> WOZ::get_track_at_position(Track::Address address) {
number_of_bits = std::min(file_.get16le(), uint16_t(6646*8));
break;
default:
case Type::WOZ2: {
// In WOZ 2 an extra level of indirection allows for variable track sizes.
const uint16_t starting_block = file_.get16le();