mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Ensures WOZ2 behaviour even if type_
has an invalid value.
This pleases GCC 7.
This commit is contained in:
parent
8af35bc6bb
commit
b961665985
@ -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));
|
number_of_bits = std::min(file_.get16le(), uint16_t(6646*8));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
case Type::WOZ2: {
|
case Type::WOZ2: {
|
||||||
// In WOZ 2 an extra level of indirection allows for variable track sizes.
|
// In WOZ 2 an extra level of indirection allows for variable track sizes.
|
||||||
const uint16_t starting_block = file_.get16le();
|
const uint16_t starting_block = file_.get16le();
|
||||||
|
Loading…
Reference in New Issue
Block a user