forked from enlightenment/efl
elm gesture layer - use fabs not abs when actually comparing floats
2 abs uses should have been fabs as they compe a src float with anot her float. found by PVS studio @fix
This commit is contained in:
parent
573d0cf586
commit
2d4d836018
|
@ -2530,8 +2530,8 @@ _momentum_test(Evas_Object *obj,
|
||||||
st->line_end.y = pe_local.y;
|
st->line_end.y = pe_local.y;
|
||||||
st->t_end = pe_local.timestamp;
|
st->t_end = pe_local.timestamp;
|
||||||
|
|
||||||
if ((abs(st->info.mx) > ELM_GESTURE_MINIMUM_MOMENTUM) ||
|
if ((fabs(st->info.mx) > ELM_GESTURE_MINIMUM_MOMENTUM) ||
|
||||||
(abs(st->info.my) > ELM_GESTURE_MINIMUM_MOMENTUM))
|
(fabs(st->info.my) > ELM_GESTURE_MINIMUM_MOMENTUM))
|
||||||
state_to_report = ELM_GESTURE_STATE_END;
|
state_to_report = ELM_GESTURE_STATE_END;
|
||||||
else
|
else
|
||||||
state_to_report = ELM_GESTURE_STATE_ABORT;
|
state_to_report = ELM_GESTURE_STATE_ABORT;
|
||||||
|
|
Loading…
Reference in New Issue