summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-09-17 12:26:26 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-09-17 12:26:26 -0400
commitcbd3b638c1e564a948b941f877a1657988c837aa (patch)
tree86a1a533b229ba6a8f0e355207273520f411a2c6
parent37507e8ebe59748c67282f52787408c42b33f0cc (diff)
Fix clang error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value]
-rw-r--r--src/mame/machine/p2000t_mdcr.cpp2
1 files changed, 1 insertions, 1 deletions
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);