mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-31 05:20:08 +01:00
test: fix clang warning about abs(float)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
1843c4aeae
commit
5bc29e9a51
1 changed files with 2 additions and 2 deletions
|
|
@ -4427,8 +4427,8 @@ START_TEST(touchpad_jump_finger_motion)
|
|||
ptrev = litest_is_motion_event(event);
|
||||
dx = libinput_event_pointer_get_dx(ptrev);
|
||||
dy = libinput_event_pointer_get_dy(ptrev);
|
||||
ck_assert_int_lt(abs(dx), 20);
|
||||
ck_assert_int_lt(abs(dy), 20);
|
||||
ck_assert_int_lt(abs((int)dx), 20);
|
||||
ck_assert_int_lt(abs((int)dy), 20);
|
||||
|
||||
libinput_event_destroy(event);
|
||||
event = libinput_get_event(li);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue