Cleanup: Use std::abs instead of abs.

This commit is contained in:
Jordan Woyak
2020-02-08 18:21:14 -06:00
parent a205ecb446
commit 4f47cccd9f
3 changed files with 5 additions and 5 deletions

View File

@ -310,6 +310,6 @@ ControlState Joystick::Hat::GetState() const
if (is_centered)
return 0;
return (abs((int)(m_hat / 4500 - m_direction * 2 + 8) % 8 - 4) > 2);
return (std::abs(int(m_hat / 4500 - m_direction * 2 + 8) % 8 - 4) > 2);
}
} // namespace ciface::DInput