diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-11-19 20:26:24 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-11-19 20:28:08 -0500 |
commit | d3f78338ca1e770f8a39c8da79378940b0d07b81 (patch) | |
tree | 6b5828a18bd6c73308e7e6e12de408abd6076bbe /src/mame/drivers/einstein.cpp | |
parent | a5a8e0cbdb29b256d08497ea122b40eff241d471 (diff) |
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...
Diffstat (limited to 'src/mame/drivers/einstein.cpp')
-rw-r--r-- | src/mame/drivers/einstein.cpp | 8 |
1 files 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 <int source> DECLARE_WRITE_LINE_MEMBER(int_w); + template <int src> 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 <int source> WRITE_LINE_MEMBER( einstein_state::int_w ) +template <int src> 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 <int source> 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); |