From cbd3b638c1e564a948b941f877a1657988c837aa Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 17 Sep 2020 12:26:26 -0400 Subject: Fix clang error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value] --- src/mame/machine/p2000t_mdcr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/machine/p2000t_mdcr.cpp b/src/mame/machine/p2000t_mdcr.cpp index 8eb69177866..75d860e5bac 100644 --- a/src/mame/machine/p2000t_mdcr.cpp +++ b/src/mame/machine/p2000t_mdcr.cpp @@ -137,7 +137,7 @@ void mdcr_device::device_timer(emu_timer &timer, device_timer_id id, int param, if (!m_recording && m_cassette->motor_on()) { // Account for moving backwards. - auto delay = abs(m_cassette->get_position() - m_last_tape_time); + auto delay = std::abs(m_cassette->get_position() - m_last_tape_time); // Decode the signal using the fake phase decode circuit bool newBit = m_phase_decoder.signal((m_cassette->input() > +0.04), delay); -- cgit v1.2.3-70-g09d2