summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/c140.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/c140.c')
-rw-r--r--src/emu/sound/c140.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/c140.c b/src/emu/sound/c140.c
index 0d258903405..300840e7e04 100644
--- a/src/emu/sound/c140.c
+++ b/src/emu/sound/c140.c
@@ -496,7 +496,7 @@ static DEVICE_START( c140 )
}
/* allocate a pair of buffers to mix into - 1 second's worth should be more than enough */
- info->mixer_buffer_left = (INT16 *)auto_malloc(2 * sizeof(INT16)*info->sample_rate );
+ info->mixer_buffer_left = auto_alloc_array(device->machine, INT16, 2 * info->sample_rate);
info->mixer_buffer_right = info->mixer_buffer_left + info->sample_rate;
}