diff options
author | yz70s <yz70s@users.noreply.github.com> | 2022-06-04 09:28:15 +0200 |
---|---|---|
committer | yz70s <yz70s@users.noreply.github.com> | 2022-06-04 09:30:41 +0200 |
commit | c93195e72f81105ec99ae14692b63e8318a02948 (patch) | |
tree | ff919352adbab9a8b135127ef2d060d79a93e148 /src/devices/machine | |
parent | 1bc5484698bb746c6f9f7dae58b005d2472f1215 (diff) |
Ranges in case statements are not supported by all compilers
Diffstat (limited to 'src/devices/machine')
-rw-r--r-- | src/devices/machine/sis5513_ide.cpp | 6 | ||||
-rw-r--r-- | src/devices/machine/sis630_gui.cpp | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/machine/sis5513_ide.cpp b/src/devices/machine/sis5513_ide.cpp index 503751c6388..99a9541f80e 100644 --- a/src/devices/machine/sis5513_ide.cpp +++ b/src/devices/machine/sis5513_ide.cpp @@ -229,11 +229,13 @@ void sis5513_ide_device::bar_w(offs_t offset, u32 data) m_bar[offset] = data; // Bits 0 (primary) and 2 (secondary) control if the mapping is legacy or BAR switch (offset) { - case 0 ... 1: + case 0: + case 1: if (ide1_mode()) pci_device::address_base_w(offset, data); break; - case 2 ... 3: + case 2: + case 3: if (ide2_mode()) pci_device::address_base_w(offset, data); break; diff --git a/src/devices/machine/sis630_gui.cpp b/src/devices/machine/sis630_gui.cpp index be5d6030612..7e5850226f9 100644 --- a/src/devices/machine/sis630_gui.cpp +++ b/src/devices/machine/sis630_gui.cpp @@ -140,7 +140,8 @@ uint8_t sis630_svga_device::seq_reg_read(uint8_t index) return m_ext_misc_ctrl_0; case 0x0a: return m_ext_vert_overflow; - case 0x0b ... 0x0c: + case 0x0b: + case 0x0c: return m_ext_horz_overflow[index - 0xb]; case 0x0d: return vga.crtc.start_addr_latch >> 16; |