From b9616659850819a2de9c2d89de5002fd3db36f06 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 24 Jul 2020 21:56:20 -0400 Subject: [PATCH] Ensures WOZ2 behaviour even if `type_` has an invalid value. This pleases GCC 7. --- Storage/Disk/DiskImage/Formats/WOZ.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Storage/Disk/DiskImage/Formats/WOZ.cpp b/Storage/Disk/DiskImage/Formats/WOZ.cpp index c11292078..98c9151d4 100644 --- a/Storage/Disk/DiskImage/Formats/WOZ.cpp +++ b/Storage/Disk/DiskImage/Formats/WOZ.cpp @@ -166,6 +166,7 @@ std::shared_ptr 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();