evdev: casting unsigned int to int to compare value
authorJengHyun Kang <jhyuni.kang@samsung.com>
Wed, 7 Jun 2017 11:20:56 +0000 (20:20 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Dec 2023 10:24:41 +0000 (19:24 +0900)
Change-Id: I3c1a3da814b89af44e3d6e93bbad2cc7c2535b70

src/evdev-fallback.c

index 6f175555e08e468b83ecde55f930bb526fbf278f..978292989698b398c4ece3573b92f5dd32db852f 100644 (file)
@@ -496,7 +496,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];