From d3f78338ca1e770f8a39c8da79378940b0d07b81 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 19 Nov 2017 20:26:24 -0500 Subject: [PATCH] einstein.cpp: Workaround for clang bug (nw) The stupid compiler seems to believe that a template variable named 'source' should have the type 'const char *', despite being declared otherwise... --- src/mame/drivers/einstein.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp index a08d6c95498..bfc970d2459 100644 --- a/src/mame/drivers/einstein.cpp +++ b/src/mame/drivers/einstein.cpp @@ -95,7 +95,7 @@ public: DECLARE_WRITE8_MEMBER(reset_w); DECLARE_READ8_MEMBER(rom_r); DECLARE_WRITE8_MEMBER(rom_w); - template DECLARE_WRITE_LINE_MEMBER(int_w); + template DECLARE_WRITE_LINE_MEMBER(int_w); DECLARE_READ8_MEMBER(kybint_msk_r); DECLARE_WRITE8_MEMBER(kybint_msk_w); DECLARE_WRITE8_MEMBER(adcint_msk_w); @@ -279,13 +279,13 @@ static const z80_daisy_config einstein_daisy_chain[] = { nullptr } }; -template WRITE_LINE_MEMBER( einstein_state::int_w ) +template WRITE_LINE_MEMBER( einstein_state::int_w ) { int old = m_int; if (state) { - m_int |= (1 << source); + m_int |= (1 << src); if (!old) { m_maincpu->set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE); @@ -294,7 +294,7 @@ template WRITE_LINE_MEMBER( einstein_state::int_w ) } else { - m_int &= ~(1 << source); + m_int &= ~(1 << src); if (old && !m_int) { m_maincpu->set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);