summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/tms6100.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-18 05:28:33 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-18 05:28:33 +0000
commite33b41ee01305193efd57ec4cebbf73aa4d15c3c (patch)
tree34cc7e4dd4264dc727b4d624481010be9bdeb5ed /src/emu/machine/tms6100.c
parent7917a1a8a0f5d00c6977198a77ce0b10a0315569 (diff)
Stop allocating arrays of UINT8s for the tokens, when
we can allocate objects of the real type.
Diffstat (limited to 'src/emu/machine/tms6100.c')
-rw-r--r--src/emu/machine/tms6100.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c
index d003fd799c3..b595a84eb1d 100644
--- a/src/emu/machine/tms6100.c
+++ b/src/emu/machine/tms6100.c
@@ -264,12 +264,12 @@ const device_type TMS6100 = &device_creator<tms6100_device>;
tms6100_device::tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TMS6100, "TMS6100", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms6100_state));
+ m_token = global_alloc_clear(tms6100_state);
}
tms6100_device::tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms6100_state));
+ m_token = global_alloc_clear(tms6100_state);
}
//-------------------------------------------------