summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/cem3394.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/cem3394.cpp')
-rw-r--r--src/devices/sound/cem3394.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/cem3394.cpp b/src/devices/sound/cem3394.cpp
index 4e264f5be1b..555369cf605 100644
--- a/src/devices/sound/cem3394.cpp
+++ b/src/devices/sound/cem3394.cpp
@@ -452,7 +452,7 @@ void cem3394_device::set_voltage(int input, double voltage)
else
{
temp = voltage * 0.5;
- if (LIMIT_WIDTH)
+ if (IS_ENABLED(LIMIT_WIDTH))
temp = MINIMUM_WIDTH + (MAXIMUM_WIDTH - MINIMUM_WIDTH) * temp;
m_pulse_width = (uint32_t)(temp * FRACTION_ONE_D);
m_wave_select |= WAVE_PULSE;