From 5bc29e9a513f9dcf48457af762e30f110441e730 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 24 Oct 2016 11:31:28 +1000 Subject: [PATCH] test: fix clang warning about abs(float) Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede Reviewed-by: Eric Engestrom --- test/touchpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/touchpad.c b/test/touchpad.c index 0169bd74..9a4aa6ca 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);