summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/vlm5030.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/vlm5030.cpp')
-rw-r--r--src/devices/sound/vlm5030.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/sound/vlm5030.cpp b/src/devices/sound/vlm5030.cpp
index 6a66cfab937..836a0de7eac 100644
--- a/src/devices/sound/vlm5030.cpp
+++ b/src/devices/sound/vlm5030.cpp
@@ -162,9 +162,9 @@ const device_type VLM5030 = &device_creator<vlm5030_device>;
vlm5030_device::vlm5030_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock, "vlm5030", __FILE__),
device_sound_interface(mconfig, *this),
- m_channel(NULL),
- m_coeff(NULL),
- m_rom(NULL),
+ m_channel(nullptr),
+ m_coeff(nullptr),
+ m_rom(nullptr),
m_address_mask(0),
m_address(0),
m_pin_BSY(0),
@@ -600,7 +600,7 @@ void vlm5030_device::sound_stream_update(sound_stream &stream, stream_sample_t *
if (u[0] > 511)
buffer[buf_count] = 511<<6;
else if (u[0] < -511)
- buffer[buf_count] = -511<<6;
+ buffer[buf_count] = UINT32(-511)<<6;
else
buffer[buf_count] = (u[0] << 6);
buf_count++;