diff -r 7345ee0a0301 -r 35b2b99ee523 src/list.c --- a/src/list.c Sat Apr 22 14:09:46 2023 +0200 +++ b/src/list.c Sat Apr 22 14:21:02 2023 +0200 @@ -115,12 +115,12 @@ return ptr == NULL ? NULL : *ptr; } -static size_t cx_pl_find( +static ssize_t cx_pl_find( struct cx_list_s const *list, void const *elem ) { cx_pl_hack_cmpfunc(list); - size_t ret = list->climpl->find(list, &elem); + ssize_t ret = list->climpl->find(list, &elem); cx_pl_unhack_cmpfunc(list); return ret; }