From c083150072f4dc80f25739c61f36591cb232add5 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 2 Nov 2018 12:53:36 +0100 Subject: [PATCH] lv_list: fix warnings --- lv_objx/lv_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lv_objx/lv_list.c b/lv_objx/lv_list.c index 4ccb5ab20..8cdaadf60 100644 --- a/lv_objx/lv_list.c +++ b/lv_objx/lv_list.c @@ -236,8 +236,8 @@ lv_obj_t * lv_list_add(lv_obj_t * list, const void * img_src, const char * txt, bool lv_list_remove(const lv_obj_t * list, uint32_t index) { lv_list_ext_t * ext = lv_obj_get_ext_attr(list); - if(index < 0 && index >= ext->size) return false; - int count = 0; + if(index >= ext->size) return false; + uint32_t count = 0; lv_obj_t * e = lv_list_get_next_btn(list, NULL); while(e != NULL) { if(count == index) {