From 8666e6958dbc42c5e3ff66835d3fc6480b83ce5f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Feb 2020 10:28:24 +1000 Subject: [PATCH] test: fix two signed vs unsigned warnings Signed-off-by: Peter Hutterer --- test/test-uinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-uinput.c b/test/test-uinput.c index be5e676..01710f2 100644 --- a/test/test-uinput.c +++ b/test/test-uinput.c @@ -69,7 +69,7 @@ START_TEST(test_uinput_create_device) if (max == -1) continue; - for (code = 0; code < max; code++) { + for (code = 0; code < (unsigned int)max; code++) { ck_assert_int_eq(libevdev_has_event_code(dev, type, code), libevdev_has_event_code(dev2, type, code)); } @@ -150,7 +150,7 @@ START_TEST(test_uinput_create_device_from_fd) if (max == -1) continue; - for (code = 0; code < max; code++) { + for (code = 0; code < (unsigned int)max; code++) { ck_assert_int_eq(libevdev_has_event_code(dev, type, code), libevdev_has_event_code(dev2, type, code)); } -- 2.34.1