namcos22.cpp: Fix clang build [-Werror,-Wabsolute-value] (nw)

This commit is contained in:
AJR 2018-11-03 18:07:46 -04:00
parent b311dfeaf8
commit ffe88b1d53

View File

@ -3056,7 +3056,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(namcos22_state::propcycl_pedal_update)
const int base = 750;
const int range = 100000;
attotime freq = attotime::from_usec(base + range * (1.0 / fabs(pedal)));
attotime freq = attotime::from_usec(base + range * (1.0 / abs(pedal)));
m_pc_pedal_interrupt->adjust(std::min(freq, m_pc_pedal_interrupt->time_left()), pedal < 0, freq);
}
else