diff --git a/src/devices/bus/qbus/pc11.cpp b/src/devices/bus/qbus/pc11.cpp index 395a0235388..26647204802 100644 --- a/src/devices/bus/qbus/pc11.cpp +++ b/src/devices/bus/qbus/pc11.cpp @@ -6,6 +6,7 @@ ***************************************************************************/ +#include "emu.h" #include "pc11.h" diff --git a/src/devices/machine/iwm.cpp b/src/devices/machine/iwm.cpp index 3d1ff6f9b21..9c5002672e2 100644 --- a/src/devices/machine/iwm.cpp +++ b/src/devices/machine/iwm.cpp @@ -17,8 +17,10 @@ iwm_device::iwm_device(const machine_config &mconfig, const char *tag, device_t applefdintf_device(mconfig, IWM, tag, owner, clock), m_q3_clock(q3_clock) { - m_q3_fclk_ratio = double(clock)/double(q3_clock); // ~0.25 - m_fclk_q3_ratio = double(q3_clock)/double(clock); // ~4 + if (q3_clock != 0) + m_q3_fclk_ratio = double(clock)/double(q3_clock); // ~0.25 + if (clock != 0) + m_fclk_q3_ratio = double(q3_clock)/double(clock); // ~4 } u64 iwm_device::q3_to_fclk(u64 cycles) const diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp index 38cda91fdfa..4422481dcd1 100644 --- a/src/devices/machine/netlist.cpp +++ b/src/devices/machine/netlist.cpp @@ -63,7 +63,7 @@ DEFINE_DEVICE_TYPE(NETLIST_STREAM_OUTPUT, netlist_mame_stream_output_device, "nl // Special netlist extension devices .... // ---------------------------------------------------------------------------------------- -extern plib::dynlib_static_sym nl_static_solver_syms[]; +extern const plib::dynlib_static_sym nl_static_solver_syms[]; static netlist::netlist_time_ext nltime_from_attotime(attotime t) { diff --git a/src/devices/machine/spg290_cdservo.cpp b/src/devices/machine/spg290_cdservo.cpp index 53415f093b5..651d5e16818 100644 --- a/src/devices/machine/spg290_cdservo.cpp +++ b/src/devices/machine/spg290_cdservo.cpp @@ -145,7 +145,7 @@ void spg290_cdservo_device::device_timer(emu_timer &timer, device_timer_id id, i m_irq_cb(ASSERT_LINE); } - if (m_cur_sector < m_seek_lba + SPG290_LEADIN_LEN and m_cur_sector < m_tot_sectors) + if ((m_cur_sector < m_seek_lba + SPG290_LEADIN_LEN) && (m_cur_sector < m_tot_sectors)) m_cur_sector++; }