From 0fd5d5abc257568d0827a6116d27e511d59baf72 Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 21 Nov 2017 19:53:48 +0100 Subject: get rid of some "auto" (nw) --- src/devices/cpu/z180/z180.cpp | 6 +++--- src/devices/sound/ymz770.cpp | 4 ++-- src/mame/drivers/gaelco3d.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/devices/cpu/z180/z180.cpp b/src/devices/cpu/z180/z180.cpp index a1dda238c60..b1abdef1c4b 100644 --- a/src/devices/cpu/z180/z180.cpp +++ b/src/devices/cpu/z180/z180.cpp @@ -34,7 +34,7 @@ Package: P = 60-Pin Plastic DIP Temp: S = 0C to +70C E = -40C to +85C -Environmanetal Flow: C = Plastic Standard +Environmental Flow: C = Plastic Standard Example from Ms.Pac-Man/Galaga - 20 year Reunion hardare (see src/mame/drivers/20pacgal.c): @@ -2538,12 +2538,12 @@ void z180_device::execute_set_input(int irqline, int state) /* the main execute loop will take the interrupt */ } else if(irqline == Z180_INPUT_LINE_DREQ0) { - auto iol = m_iol & ~Z180_DREQ0; + uint32_t iol = m_iol & ~Z180_DREQ0; if(state == ASSERT_LINE) iol |= Z180_DREQ0; z180_write_iolines(iol); } else if(irqline == Z180_INPUT_LINE_DREQ1) { - auto iol = m_iol & ~Z180_DREQ1; + uint32_t iol = m_iol & ~Z180_DREQ1; if(state == ASSERT_LINE) iol |= Z180_DREQ1; z180_write_iolines(iol); diff --git a/src/devices/sound/ymz770.cpp b/src/devices/sound/ymz770.cpp index ff98336a1df..cb87eafb304 100644 --- a/src/devices/sound/ymz770.cpp +++ b/src/devices/sound/ymz770.cpp @@ -427,8 +427,8 @@ READ8_MEMBER(ymz774_device::read) { m_stream->update(); uint8_t res = 0; - auto bank = (m_cur_reg == 0xe3) ? 8 : 0; - for (auto i = 0; i < 8; i++) + int bank = (m_cur_reg == 0xe3) ? 8 : 0; + for (int i = 0; i < 8; i++) if (m_channels[i + bank].is_playing) res |= 1 << i; return res; diff --git a/src/mame/drivers/gaelco3d.cpp b/src/mame/drivers/gaelco3d.cpp index 5cf376dbc51..472b72fcfa6 100644 --- a/src/mame/drivers/gaelco3d.cpp +++ b/src/mame/drivers/gaelco3d.cpp @@ -366,7 +366,7 @@ WRITE_LINE_MEMBER(gaelco3d_state::fp_analog_clock_w) if (m_fp_clock == 28) { m_fp_clock = 0; - for (auto i = 0; i < 2; i++) + for (int i = 0; i < 2; i++) { u32 ay = m_analog[i * 2].read_safe(0); u32 ax = m_analog[i * 2 + 1].read_safe(0); -- cgit v1.2.3