Qt: Use std::abs instead of abs

...since <cmath> is included, not <math.h>. May or may not fix
https://bugs.dolphin-emu.org/issues/10906
This commit is contained in:
Léo Lam 2018-02-22 17:54:19 +01:00
parent fca9c28f38
commit fd063bdc31
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void MappingIndicator::DrawStick()
// Emulated cursor position
float virt_curx, virt_cury;
if (abs(curx) < deadzone && abs(cury) < deadzone)
if (std::abs(curx) < deadzone && std::abs(cury) < deadzone)
{
virt_curx = virt_cury = 0;
}