diff options
author | 2009-03-12 07:43:03 +0000 | |
---|---|---|
committer | 2009-03-12 07:43:03 +0000 | |
commit | eb539cce9d58a349e0dffff237dc96bb926ca06f (patch) | |
tree | e86162a925dfb228169afd2fb6309cba906400c5 /src/emu/machine/pit8253.c | |
parent | feb4e2c8b368f5ec7f251e764167fd24708700f3 (diff) |
Many casts added to the core files, and various other tweaks
to make them compile as either C or C++.
Diffstat (limited to 'src/emu/machine/pit8253.c')
-rw-r--r-- | src/emu/machine/pit8253.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c index 8493b92bdf4..2f7b10b9348 100644 --- a/src/emu/machine/pit8253.c +++ b/src/emu/machine/pit8253.c @@ -657,7 +657,7 @@ static void update(const device_config *device, struct pit8253_timer *timer) static TIMER_CALLBACK( update_timer_cb ) { - const device_config *device = ptr; + const device_config *device = (const device_config *)ptr; pit8253_t *pit8253 = get_safe_token(device); struct pit8253_timer *timer = get_timer(pit8253,param); @@ -1042,7 +1042,7 @@ static void common_start( const device_config *device, int device_type ) { pit8253_t *pit8253 = get_safe_token(device); int timerno; - pit8253->config = device->static_config; + pit8253->config = (const struct pit8253_config *)device->static_config; pit8253->device_type = device_type; /* register for state saving */ |