mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-24 17:32:55 +00:00
Resolve switch-statement warnings.
This commit is contained in:
parent
d6073e0407
commit
eca0984739
@ -44,6 +44,7 @@ const Time FMBitLength = Time(1, 50000);
|
||||
|
||||
constexpr Time bit_length(Density density) {
|
||||
switch(density) {
|
||||
default:
|
||||
case Density::Single: return FMBitLength;
|
||||
case Density::Double: return MFMBitLength;
|
||||
case Density::High: return HDMFMBitLength;
|
||||
|
@ -382,6 +382,7 @@ std::shared_ptr<Storage::Disk::Track> Storage::Encodings::MFM::TrackWithSectors(
|
||||
std::optional<uint8_t> sector_gap_filler_byte
|
||||
) {
|
||||
switch(density) {
|
||||
default:
|
||||
case Density::Single: return TTrackWithSectors<Density::Single>(sectors, sector_gap_length, sector_gap_filler_byte);
|
||||
case Density::Double: return TTrackWithSectors<Density::Double>(sectors, sector_gap_length, sector_gap_filler_byte);
|
||||
case Density::High: return TTrackWithSectors<Density::High>(sectors, sector_gap_length, sector_gap_filler_byte);
|
||||
|
Loading…
x
Reference in New Issue
Block a user