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)
committerjeon <jhyuni.kang@samsung.com>
Wed, 19 Feb 2020 12:28:26 +0000 (21:28 +0900)
Change-Id: I3c1a3da814b89af44e3d6e93bbad2cc7c2535b70

src/evdev-fallback.c

index d5b7b06b6f81f00a66b7ad075c2ce1ceb504a1a0..145980d6abeddae8ec8896b99e93197651cd70c6 100644 (file)
@@ -559,7 +559,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];