diff options
Diffstat (limited to 'src/mame/machine/interpro_sga.h')
-rw-r--r-- | src/mame/machine/interpro_sga.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/interpro_sga.h b/src/mame/machine/interpro_sga.h index 691859aceea..c784ecd6a62 100644 --- a/src/mame/machine/interpro_sga.h +++ b/src/mame/machine/interpro_sga.h @@ -7,14 +7,14 @@ #pragma once #define MCFG_INTERPRO_SGA_BERR_CB(_out_berr) \ - devcb = &interpro_sga_device::static_set_out_berr_callback(*device, DEVCB_##_out_berr); + devcb = &downcast<interpro_sga_device &>(*device).set_out_berr_callback(DEVCB_##_out_berr); class interpro_sga_device : public device_t { public: interpro_sga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template<class _Object> static devcb_base &static_set_out_berr_callback(device_t &device, _Object object) { return downcast<interpro_sga_device &>(device).out_berr_func.set_callback(object); } + template<class _Object> devcb_base &set_out_berr_callback(_Object object) { return out_berr_func.set_callback(object); } virtual void map(address_map &map); |