summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-03-23 15:27:59 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-03-23 15:29:20 -0400
commit1393404c1f6c74d5a29f779dd62c3ba66b96206f (patch)
treeaa9dac050005d5509e7585c2e209afce64506112 /src
parent6cb7514f6e498956f4ccc15f01b3087d1794daea (diff)
Various devices: Correct placement of U integer suffix in definitions of shifted LOG_xxx constant macros (continued from 0c382ffc806ee926765f50e0615fde4de14a2408)
* bandit: Use swapendian_int32 function * pokey: Improve some subtle aspects of keyboard handling
Diffstat (limited to 'src')
-rw-r--r--src/devices/cpu/dsp56156/dsp56mem.cpp8
-rw-r--r--src/devices/cpu/dsp56156/dsp56ops.hxx4
-rw-r--r--src/devices/machine/68340.cpp4
-rw-r--r--src/devices/machine/cs8900a.cpp22
-rw-r--r--src/devices/machine/iwm.cpp4
-rw-r--r--src/devices/machine/k056230.cpp10
-rw-r--r--src/devices/machine/ldv4200hle.cpp18
-rw-r--r--src/devices/sound/pokey.cpp24
-rw-r--r--src/devices/video/mc6845.cpp6
-rw-r--r--src/devices/video/psx.cpp6
-rw-r--r--src/emu/diserial.cpp6
-rw-r--r--src/mame/act/victor9k.cpp6
-rw-r--r--src/mame/apple/bandit.cpp10
-rw-r--r--src/mame/apple/macadb.cpp6
-rw-r--r--src/mame/fairlight/cmi.cpp2
-rw-r--r--src/mame/grundy/newbrain.cpp4
-rw-r--r--src/mame/namco/galaga_v.cpp2
-rw-r--r--src/mame/sgi/crime.cpp6
-rw-r--r--src/mame/sgi/hal2.cpp6
-rw-r--r--src/mame/sgi/mace.cpp50
-rw-r--r--src/mame/skeleton/swyft.cpp4
21 files changed, 104 insertions, 104 deletions
diff --git a/src/devices/cpu/dsp56156/dsp56mem.cpp b/src/devices/cpu/dsp56156/dsp56mem.cpp
index d5bd5e485df..7ae5f46314b 100644
--- a/src/devices/cpu/dsp56156/dsp56mem.cpp
+++ b/src/devices/cpu/dsp56156/dsp56mem.cpp
@@ -8,10 +8,10 @@
#include "dsp56pcu.h"
#define LOG_OUTPUT_FUNC cpustate->device->logerror
-#define LOG_INVALID (1 << 1U)
-#define LOG_PERIPHERAL_READS (1 << 2U)
-#define LOG_PERIPHERAL_WRITES (1 << 3U)
-#define LOG_HOST_READS (1 << 4U)
+#define LOG_INVALID (1U << 1)
+#define LOG_PERIPHERAL_READS (1U << 2)
+#define LOG_PERIPHERAL_WRITES (1U << 3)
+#define LOG_HOST_READS (1U << 4)
#define VERBOSE (0)
#include "logmacro.h"
diff --git a/src/devices/cpu/dsp56156/dsp56ops.hxx b/src/devices/cpu/dsp56156/dsp56ops.hxx
index 71e3ec2945e..1072a163c7a 100644
--- a/src/devices/cpu/dsp56156/dsp56ops.hxx
+++ b/src/devices/cpu/dsp56156/dsp56ops.hxx
@@ -23,8 +23,8 @@ TODO:
*/
#define LOG_OUTPUT_FUNC cpustate->device->logerror
-#define LOG_UNIMPLEMENTED (1 << 1U)
-#define LOG_CHECKS (1 << 2U)
+#define LOG_UNIMPLEMENTED (1U << 1)
+#define LOG_CHECKS (1U << 2)
#define VERBOSE (0)
#include "logmacro.h"
diff --git a/src/devices/machine/68340.cpp b/src/devices/machine/68340.cpp
index b01e996f6ba..56d9f7cd19c 100644
--- a/src/devices/machine/68340.cpp
+++ b/src/devices/machine/68340.cpp
@@ -9,8 +9,8 @@
#include <algorithm>
-#define LOG_BASE (1 << 1U)
-#define LOG_IPL (1 << 2U)
+#define LOG_BASE (1U << 1)
+#define LOG_IPL (1U << 2)
#define VERBOSE (LOG_BASE)
#include "logmacro.h"
diff --git a/src/devices/machine/cs8900a.cpp b/src/devices/machine/cs8900a.cpp
index 52e0808bb01..92df2892ddc 100644
--- a/src/devices/machine/cs8900a.cpp
+++ b/src/devices/machine/cs8900a.cpp
@@ -20,17 +20,17 @@
DEFINE_DEVICE_TYPE(CS8900A, cs8900a_device, "cs8900a", "CS8900A Crystal LAN 10Base-T Ethernet MAC")
/* warn illegal behaviour */
-#define CS8900_DEBUG_WARN_REG (1 << 1U) /* warn about invalid register accesses */
-#define CS8900_DEBUG_WARN_RXTX (1 << 2U) /* warn about invalid rx or tx conditions */
-
-#define CS8900_DEBUG (1 << 3U) /* enable to see port reads */
-#define CS8900_DEBUG_INIT (1 << 4U)
-#define CS8900_DEBUG_LOAD (1 << 5U) /* enable to see port reads */
-#define CS8900_DEBUG_STORE (1 << 6U) /* enable to see port writes */
-#define CS8900_DEBUG_REGISTERS (1 << 7U) /* enable to see CS8900a register I/O */
-#define CS8900_DEBUG_RXTX_STATE (1 << 8U) /* enable to see tranceiver state changes */
-#define CS8900_DEBUG_RXTX_DATA (1 << 9U) /* enable to see data in/out flow */
-#define CS8900_DEBUG_FRAMES (1 << 10U) /* enable to see arch frame send/recv */
+#define CS8900_DEBUG_WARN_REG (1U << 1) /* warn about invalid register accesses */
+#define CS8900_DEBUG_WARN_RXTX (1U << 2) /* warn about invalid rx or tx conditions */
+
+#define CS8900_DEBUG (1U << 3) /* enable to see port reads */
+#define CS8900_DEBUG_INIT (1U << 4)
+#define CS8900_DEBUG_LOAD (1U << 5) /* enable to see port reads */
+#define CS8900_DEBUG_STORE (1U << 6) /* enable to see port writes */
+#define CS8900_DEBUG_REGISTERS (1U << 7) /* enable to see CS8900a register I/O */
+#define CS8900_DEBUG_RXTX_STATE (1U << 8) /* enable to see tranceiver state changes */
+#define CS8900_DEBUG_RXTX_DATA (1U << 9) /* enable to see data in/out flow */
+#define CS8900_DEBUG_FRAMES (1U << 10) /* enable to see arch frame send/recv */
/** #define CS8900_DEBUG_IGNORE_RXEVENT 1 **/ /* enable to ignore RXEVENT in DEBUG_REGISTERS */
#define VERBOSE 0
diff --git a/src/devices/machine/iwm.cpp b/src/devices/machine/iwm.cpp
index 6f9b815c789..76d2e116739 100644
--- a/src/devices/machine/iwm.cpp
+++ b/src/devices/machine/iwm.cpp
@@ -11,8 +11,8 @@
#include "emu.h"
#include "iwm.h"
-#define LOG_CONTROL (1 << 1U)
-#define LOG_MODE (1 << 2U)
+#define LOG_CONTROL (1U << 1)
+#define LOG_MODE (1U << 2)
#define VERBOSE 0
#include "logmacro.h"
diff --git a/src/devices/machine/k056230.cpp b/src/devices/machine/k056230.cpp
index 7a401c83def..e3a457f8512 100644
--- a/src/devices/machine/k056230.cpp
+++ b/src/devices/machine/k056230.cpp
@@ -20,11 +20,11 @@ TODO: nearly everything
#include "k056230.h"
-#define LOG_REG_READS (1 << 1U)
-#define LOG_REG_WRITES (1 << 2U)
-#define LOG_RAM_READS (1 << 3U)
-#define LOG_RAM_WRITES (1 << 4U)
-#define LOG_UNKNOWNS (1 << 5U)
+#define LOG_REG_READS (1U << 1)
+#define LOG_REG_WRITES (1U << 2)
+#define LOG_RAM_READS (1U << 3)
+#define LOG_RAM_WRITES (1U << 4)
+#define LOG_UNKNOWNS (1U << 5)
#define LOG_ALL (LOG_REG_READS | LOG_REG_WRITES | LOG_RAM_READS | LOG_RAM_WRITES | LOG_UNKNOWNS)
#define VERBOSE (0)
diff --git a/src/devices/machine/ldv4200hle.cpp b/src/devices/machine/ldv4200hle.cpp
index ccf1d7bb070..4727d99cfa4 100644
--- a/src/devices/machine/ldv4200hle.cpp
+++ b/src/devices/machine/ldv4200hle.cpp
@@ -32,15 +32,15 @@
#include "ldv4200hle.h"
-#define LOG_COMMAND_BYTES (1 << 1U)
-#define LOG_COMMANDS (1 << 2U)
-#define LOG_COMMAND_BUFFERS (1 << 3U)
-#define LOG_REPLIES (1 << 4U)
-#define LOG_REPLY_BYTES (1 << 5U)
-#define LOG_SEARCHES (1 << 6U)
-#define LOG_STOPS (1 << 7U)
-#define LOG_SQUELCHES (1 << 8U)
-#define LOG_FRAMES (1 << 9U)
+#define LOG_COMMAND_BYTES (1U << 1)
+#define LOG_COMMANDS (1U << 2)
+#define LOG_COMMAND_BUFFERS (1U << 3)
+#define LOG_REPLIES (1U << 4)
+#define LOG_REPLY_BYTES (1U << 5)
+#define LOG_SEARCHES (1U << 6)
+#define LOG_STOPS (1U << 7)
+#define LOG_SQUELCHES (1U << 8)
+#define LOG_FRAMES (1U << 9)
#define LOG_ALL (LOG_COMMAND_BYTES | LOG_COMMANDS | LOG_COMMAND_BUFFERS | LOG_REPLY_BYTES | LOG_SEARCHES | LOG_STOPS | LOG_SQUELCHES | LOG_FRAMES)
#define VERBOSE (0)
diff --git a/src/devices/sound/pokey.cpp b/src/devices/sound/pokey.cpp
index b490126c0d5..a939f0faf9a 100644
--- a/src/devices/sound/pokey.cpp
+++ b/src/devices/sound/pokey.cpp
@@ -100,11 +100,11 @@
#define POKEY_DEFAULT_GAIN (32767/11/4)
-#define VERBOSE_SOUND (1 << 1U)
-#define VERBOSE_TIMER (1 << 2U)
-#define VERBOSE_POLY (1 << 3U)
-#define VERBOSE_RAND (1 << 4U)
-#define VERBOSE_IRQ (1 << 5U)
+#define VERBOSE_SOUND (1U << 1)
+#define VERBOSE_TIMER (1U << 2)
+#define VERBOSE_POLY (1U << 3)
+#define VERBOSE_RAND (1U << 4)
+#define VERBOSE_IRQ (1U << 5)
#define VERBOSE (0)
#include "logmacro.h"
@@ -504,7 +504,7 @@ void pokey_device::step_keyboard()
}
break;
case 1: /* waiting for key confirmation */
- if ((m_kbd_latch & 0x3f) == m_kbd_cnt)
+ if (!(m_SKCTL & SK_DEBOUNCE) || (m_kbd_latch & 0x3f) == m_kbd_cnt)
{
if (ret & 1)
{
@@ -526,16 +526,14 @@ void pokey_device::step_keyboard()
}
break;
case 2: /* waiting for release */
- if ((m_kbd_latch & 0x3f) == m_kbd_cnt)
+ if (!(m_SKCTL & SK_DEBOUNCE) || (m_kbd_latch & 0x3f) == m_kbd_cnt)
{
if ((ret & 1)==0)
m_kbd_state++;
- else
- m_SKSTAT |= SK_KEYBD;
}
break;
case 3:
- if ((m_kbd_latch & 0x3f) == m_kbd_cnt)
+ if (!(m_SKCTL & SK_DEBOUNCE) || (m_kbd_latch & 0x3f) == m_kbd_cnt)
{
if (ret & 1)
m_kbd_state = 2;
@@ -1054,6 +1052,12 @@ void pokey_device::write_internal(offs_t offset, uint8_t data)
m_clock_cnt[2] = 0;
/* FIXME: Serial port reset ! */
}
+ if (!(data & SK_KEYSCAN))
+ {
+ m_SKSTAT &= ~SK_KEYBD;
+ m_kbd_cnt = 0;
+ m_kbd_state = 0;
+ }
m_old_raw_inval = true;
break;
}
diff --git a/src/devices/video/mc6845.cpp b/src/devices/video/mc6845.cpp
index a197869b4e8..9825cfd113f 100644
--- a/src/devices/video/mc6845.cpp
+++ b/src/devices/video/mc6845.cpp
@@ -49,9 +49,9 @@
#include "screen.h"
-#define LOG_SETUP (1 << 1U)
-#define LOG_REGS (1 << 2U)
-#define LOG_CONF (1 << 3U)
+#define LOG_SETUP (1U << 1)
+#define LOG_REGS (1U << 2)
+#define LOG_CONF (1U << 3)
//#define VERBOSE (LOG_SETUP|LOG_CONF|LOG_REGS)
//#define LOG_OUTPUT_STREAM std::cout
diff --git a/src/devices/video/psx.cpp b/src/devices/video/psx.cpp
index 1256c8df4fe..dfef8568f3c 100644
--- a/src/devices/video/psx.cpp
+++ b/src/devices/video/psx.cpp
@@ -16,9 +16,9 @@
#define STOP_ON_ERROR ( 0 )
-#define LOG_WRITE (1 << 1U)
-#define LOG_READ (1 << 2U)
-#define LOG_TRANSPARENCY (1 << 3U)
+#define LOG_WRITE (1U << 1)
+#define LOG_READ (1U << 2)
+#define LOG_TRANSPARENCY (1U << 3)
#define VERBOSE (0)
#include "logmacro.h"
diff --git a/src/emu/diserial.cpp b/src/emu/diserial.cpp
index eb66f770c70..6a67605b215 100644
--- a/src/emu/diserial.cpp
+++ b/src/emu/diserial.cpp
@@ -10,9 +10,9 @@
#include "emu.h"
#include "diserial.h"
-#define LOG_SETUP (1 << 1U)
-#define LOG_TX (1 << 2U)
-#define LOG_RX (1 << 3U)
+#define LOG_SETUP (1U << 1)
+#define LOG_TX (1U << 2)
+#define LOG_RX (1U << 3)
#define VERBOSE (0)
#define LOG_OUTPUT_FUNC device().logerror
diff --git a/src/mame/act/victor9k.cpp b/src/mame/act/victor9k.cpp
index f990dc2c379..9143366f702 100644
--- a/src/mame/act/victor9k.cpp
+++ b/src/mame/act/victor9k.cpp
@@ -50,9 +50,9 @@
// LOGGING
//**************************************************************************
-#define LOG_CONF (1 << 1U)
-#define LOG_KEYBOARD (1 << 2U)
-#define LOG_DISPLAY (1 << 3U)
+#define LOG_CONF (1U << 1)
+#define LOG_KEYBOARD (1U << 2)
+#define LOG_DISPLAY (1U << 3)
//#define VERBOSE (LOG_CONF|LOG_DISPLAY|LOG_KEYBOARD)
//#define LOG_OUTPUT_STREAM std::cout
diff --git a/src/mame/apple/bandit.cpp b/src/mame/apple/bandit.cpp
index a1c9309646a..79341a45a96 100644
--- a/src/mame/apple/bandit.cpp
+++ b/src/mame/apple/bandit.cpp
@@ -129,7 +129,7 @@ u32 bandit_host_device::be_config_address_r()
void bandit_host_device::be_config_address_w(offs_t offset, u32 data, u32 mem_mask)
{
- u32 tempdata = (data >> 24) | (data << 24) | ((data & 0xff00) << 8) | ((data & 0xff0000) >> 8);
+ u32 tempdata = swapendian_int32(data);
m_last_config_address = tempdata;
@@ -143,18 +143,14 @@ void bandit_host_device::be_config_address_w(offs_t offset, u32 data, u32 mem_ma
u32 bandit_host_device::be_config_data_r(offs_t offset, u32 mem_mask)
{
- u32 temp = pci_host_device::config_data_ex_r(offset, mem_mask);
- return (temp >> 24) | (temp << 24) | ((temp & 0xff00) << 8) | ((temp & 0xff0000) >> 8);
+ return swapendian_int32(pci_host_device::config_data_ex_r(offset, mem_mask));
}
void bandit_host_device::be_config_data_w(offs_t offset, u32 data, u32 mem_mask)
{
- u32 tempdata;
-
// printf("config_data_w: %08x @ %08x mask %08x\n", data, offset, mem_mask);
- tempdata = (data >> 24) | (data << 24) | ((data & 0xff00) << 8) | ((data & 0xff0000) >> 8);
- pci_host_device::config_data_ex_w(offset, tempdata, mem_mask);
+ pci_host_device::config_data_ex_w(offset, swapendian_int32(data), mem_mask);
}
template <u32 Base>
diff --git a/src/mame/apple/macadb.cpp b/src/mame/apple/macadb.cpp
index 4888eed1ed5..35e04eb6de1 100644
--- a/src/mame/apple/macadb.cpp
+++ b/src/mame/apple/macadb.cpp
@@ -9,9 +9,9 @@
#include "emu.h"
#include "macadb.h"
-#define LOG_TALK_LISTEN (1 << 1U)
-#define LOG_STATE (1 << 2U)
-#define LOG_LINESTATE (1 << 3U)
+#define LOG_TALK_LISTEN (1U << 1)
+#define LOG_STATE (1U << 2)
+#define LOG_LINESTATE (1U << 3)
#define VERBOSE (0)
#include "logmacro.h"
diff --git a/src/mame/fairlight/cmi.cpp b/src/mame/fairlight/cmi.cpp
index 70c85c3a235..77dae268f3c 100644
--- a/src/mame/fairlight/cmi.cpp
+++ b/src/mame/fairlight/cmi.cpp
@@ -104,7 +104,7 @@
#include "screen.h"
#include "speaker.h"
-#define LOG_CHANNELS (1 << 1U)
+#define LOG_CHANNELS (1U << 1)
#define VERBOSE (0)
#include "logmacro.h"
diff --git a/src/mame/grundy/newbrain.cpp b/src/mame/grundy/newbrain.cpp
index 65b220b3ed3..c16fd92d0c1 100644
--- a/src/mame/grundy/newbrain.cpp
+++ b/src/mame/grundy/newbrain.cpp
@@ -64,8 +64,8 @@
// MACROS / CONSTANTS
//**************************************************************************
-#define LOG_COP (1 << 1U)
-#define LOG_VFD (1 << 2U)
+#define LOG_COP (1U << 1)
+#define LOG_VFD (1U << 2)
#define VERBOSE 0
#include "logmacro.h"
diff --git a/src/mame/namco/galaga_v.cpp b/src/mame/namco/galaga_v.cpp
index 160ce88c880..a310d055322 100644
--- a/src/mame/namco/galaga_v.cpp
+++ b/src/mame/namco/galaga_v.cpp
@@ -11,7 +11,7 @@
#include "emu.h"
#include "galaga.h"
-#define LOG_DEBUG (1 << 0U)
+#define LOG_DEBUG (1U << 0)
#define LOG_ALL (LOG_DEBUG)
#define VERBOSE (LOG_ALL)
diff --git a/src/mame/sgi/crime.cpp b/src/mame/sgi/crime.cpp
index 6e6a6272698..91742ec2f85 100644
--- a/src/mame/sgi/crime.cpp
+++ b/src/mame/sgi/crime.cpp
@@ -9,9 +9,9 @@
#include "emu.h"
#include "crime.h"
-#define LOG_UNKNOWN (1 << 0U)
-#define LOG_READS (1 << 1U)
-#define LOG_WRITES (1 << 2U)
+#define LOG_UNKNOWN (1U << 0)
+#define LOG_READS (1U << 1)
+#define LOG_WRITES (1U << 2)
#define LOG_ALL (LOG_UNKNOWN | LOG_READS | LOG_WRITES)
#define VERBOSE (LOG_ALL)
diff --git a/src/mame/sgi/hal2.cpp b/src/mame/sgi/hal2.cpp
index 9483e6419c3..cc08a78be01 100644
--- a/src/mame/sgi/hal2.cpp
+++ b/src/mame/sgi/hal2.cpp
@@ -9,9 +9,9 @@
#include "emu.h"
#include "hal2.h"
-#define LOG_UNKNOWN (1 << 0U)
-#define LOG_READS (1 << 1U)
-#define LOG_WRITES (1 << 2U)
+#define LOG_UNKNOWN (1U << 0)
+#define LOG_READS (1U << 1)
+#define LOG_WRITES (1U << 2)
#define LOG_ALL (LOG_UNKNOWN | LOG_READS | LOG_WRITES)
#define VERBOSE (0)
diff --git a/src/mame/sgi/mace.cpp b/src/mame/sgi/mace.cpp
index fa55b353289..2cba2b0cfaa 100644
--- a/src/mame/sgi/mace.cpp
+++ b/src/mame/sgi/mace.cpp
@@ -9,31 +9,31 @@
#include "emu.h"
#include "mace.h"
-#define LOG_READ_PCI (1 << 0U)
-#define LOG_READ_VIN1 (1 << 1U)
-#define LOG_READ_VIN2 (1 << 2U)
-#define LOG_READ_VOUT (1 << 3U)
-#define LOG_READ_ENET (1 << 4U)
-#define LOG_READ_AUDIO (1 << 5U)
-#define LOG_READ_ISA (1 << 6U)
-#define LOG_READ_KBDMS (1 << 7U)
-#define LOG_READ_I2C (1 << 8U)
-#define LOG_READ_UST_MSC (1 << 9U)
-#define LOG_READ_ISA_EXT (1 << 10U)
-#define LOG_READ_RTC (1 << 11U)
-#define LOG_WRITE_PCI (1 << 12U)
-#define LOG_WRITE_VIN1 (1 << 13U)
-#define LOG_WRITE_VIN2 (1 << 14U)
-#define LOG_WRITE_VOUT (1 << 15U)
-#define LOG_WRITE_ENET (1 << 16U)
-#define LOG_WRITE_AUDIO (1 << 17U)
-#define LOG_WRITE_ISA (1 << 18U)
-#define LOG_WRITE_KBDMS (1 << 19U)
-#define LOG_WRITE_I2C (1 << 20U)
-#define LOG_WRITE_UST_MSC (1 << 21U)
-#define LOG_WRITE_ISA_EXT (1 << 22U)
-#define LOG_WRITE_RTC (1 << 23U)
-#define LOG_HIFREQ (1 << 24U)
+#define LOG_READ_PCI (1U << 0)
+#define LOG_READ_VIN1 (1U << 1)
+#define LOG_READ_VIN2 (1U << 2)
+#define LOG_READ_VOUT (1U << 3)
+#define LOG_READ_ENET (1U << 4)
+#define LOG_READ_AUDIO (1U << 5)
+#define LOG_READ_ISA (1U << 6)
+#define LOG_READ_KBDMS (1U << 7)
+#define LOG_READ_I2C (1U << 8)
+#define LOG_READ_UST_MSC (1U << 9)
+#define LOG_READ_ISA_EXT (1U << 10)
+#define LOG_READ_RTC (1U << 11)
+#define LOG_WRITE_PCI (1U << 12)
+#define LOG_WRITE_VIN1 (1U << 13)
+#define LOG_WRITE_VIN2 (1U << 14)
+#define LOG_WRITE_VOUT (1U << 15)
+#define LOG_WRITE_ENET (1U << 16)
+#define LOG_WRITE_AUDIO (1U << 17)
+#define LOG_WRITE_ISA (1U << 18)
+#define LOG_WRITE_KBDMS (1U << 19)
+#define LOG_WRITE_I2C (1U << 20(
+#define LOG_WRITE_UST_MSC (1U << 21)
+#define LOG_WRITE_ISA_EXT (1U << 22)
+#define LOG_WRITE_RTC (1U << 23)
+#define LOG_HIFREQ (1U << 24)
#define LOG_PCI (LOG_READ_PCI | LOG_WRITE_PCI)
#define LOG_VIN1 (LOG_READ_VIN1 | LOG_WRITE_VIN1)
#define LOG_VIN2 (LOG_READ_VIN2 | LOG_WRITE_VIN2)
diff --git a/src/mame/skeleton/swyft.cpp b/src/mame/skeleton/swyft.cpp
index 9a86b0867c6..112aed13692 100644
--- a/src/mame/skeleton/swyft.cpp
+++ b/src/mame/skeleton/swyft.cpp
@@ -294,8 +294,8 @@ ToDo:
#undef DEBUG_TEST_W
-#define LOG_VIA0 (1 << 1U)
-#define LOG_VIA1 (1 << 2U)
+#define LOG_VIA0 (1U << 1)
+#define LOG_VIA1 (1U << 2)
//#define VERBOSE (LOG_VIA0 | LOG_VIA1)
#include "logmacro.h"