[PATCH libinput 3/3] test: fix clang warning about abs(float)
Peter Hutterer
peter.hutterer at who-t.net
Mon Oct 24 01:45:19 UTC 2016
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/touchpad.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/touchpad.c b/test/touchpad.c
index 0169bd7..9a4aa6c 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -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);
--
2.9.3
More information about the wayland-devel
mailing list