1.1 --- a/src/cx/list.h Sat Apr 22 14:09:46 2023 +0200 1.2 +++ b/src/cx/list.h Sat Apr 22 14:21:02 2023 +0200 1.3 @@ -136,7 +136,7 @@ 1.4 /** 1.5 * Member function for finding an element. 1.6 */ 1.7 - size_t (*find)( 1.8 + ssize_t (*find)( 1.9 struct cx_list_s const *list, 1.10 void const *elem 1.11 ); 1.12 @@ -569,10 +569,11 @@ 1.13 * 1.14 * @param list the list 1.15 * @param elem the element to find 1.16 - * @return the index of the element or \c size if the element is not found 1.17 + * @return the index of the element or a negative 1.18 + * value when the element is not found 1.19 */ 1.20 __attribute__((__nonnull__)) 1.21 -static inline size_t cxListFind( 1.22 +static inline ssize_t cxListFind( 1.23 CxList const *list, 1.24 void const *elem 1.25 ) {