summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/st0016.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/st0016.h')
-rw-r--r--src/mame/machine/st0016.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/st0016.h b/src/mame/machine/st0016.h
index 0819c0fef81..333cda7f837 100644
--- a/src/mame/machine/st0016.h
+++ b/src/mame/machine/st0016.h
@@ -15,7 +15,7 @@ typedef device_delegate<uint8_t (void)> st0016_dma_offs_delegate;
#define ST0016_DMA_OFFS_CB(name) uint8_t name(void)
#define MCFG_ST0016_DMA_OFFS_CB(_class, _method) \
- st0016_cpu_device::set_dma_offs_callback(*device, st0016_dma_offs_delegate(&_class::_method, #_class "::" #_method, this));
+ downcast<st0016_cpu_device &>(*device).set_dma_offs_callback(st0016_dma_offs_delegate(&_class::_method, #_class "::" #_method, this));
class st0016_cpu_device : public z80_device, public device_gfx_interface
@@ -23,7 +23,7 @@ class st0016_cpu_device : public z80_device, public device_gfx_interface
public:
st0016_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t);
- static void set_dma_offs_callback(device_t &device, st0016_dma_offs_delegate callback) { downcast<st0016_cpu_device &>(device).m_dma_offs_cb = callback; }
+ void set_dma_offs_callback(st0016_dma_offs_delegate callback) { m_dma_offs_cb = callback; }
DECLARE_WRITE8_MEMBER(st0016_sprite_bank_w);
DECLARE_WRITE8_MEMBER(st0016_palette_bank_w);