From 4c1ea1e47588d523a966d87b4f47537acf3a182f Mon Sep 17 00:00:00 2001 From: JengHyun Kang Date: Wed, 7 Jun 2017 20:20:56 +0900 Subject: [PATCH] evdev: casting unsigned int to int to compare value Change-Id: I3c1a3da814b89af44e3d6e93bbad2cc7c2535b70 --- src/evdev-fallback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c index fafc38b..1ab7fe5 100644 --- a/src/evdev-fallback.c +++ b/src/evdev-fallback.c @@ -501,7 +501,7 @@ fallback_process_touch_extra_aux_data(struct fallback_dispatch *dispatch, struct list *current_axis_list; if (!dispatch->mt.aux_data_list) return false; - if (dispatch->mt.slot < 0 || dispatch->mt.slot >= dispatch->mt.slots_len) + if (dispatch->mt.slot < 0 || dispatch->mt.slot >= (int)dispatch->mt.slots_len) return false; current_axis_list = &dispatch->mt.aux_data_list[dispatch->mt.slot]; -- 2.7.4