summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/micropolis.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/mess/machine/micropolis.c
parent7917a1a8a0f5d00c6977198a77ce0b10a0315569 (diff)
Stop allocating arrays of UINT8s for the tokens, when
we can allocate objects of the real type.
Diffstat (limited to 'src/mess/machine/micropolis.c')
-rw-r--r--src/mess/machine/micropolis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mess/machine/micropolis.c b/src/mess/machine/micropolis.c
index 5919694ab65..4a026859dd3 100644
--- a/src/mess/machine/micropolis.c
+++ b/src/mess/machine/micropolis.c
@@ -381,7 +381,7 @@ const device_type MICROPOLIS = &device_creator<micropolis_device>;
micropolis_device::micropolis_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MICROPOLIS, "MICROPOLIS", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(micropolis_state));
+ m_token = global_alloc_clear(micropolis_state);
}
//-------------------------------------------------