src/list.c

changeset 699
35b2b99ee523
parent 680
19379743e5a0
child 704
35f06c5eeb0e
equal deleted inserted replaced
698:7345ee0a0301 699:35b2b99ee523
113 ) { 113 ) {
114 void **ptr = list->climpl->at(list, index); 114 void **ptr = list->climpl->at(list, index);
115 return ptr == NULL ? NULL : *ptr; 115 return ptr == NULL ? NULL : *ptr;
116 } 116 }
117 117
118 static size_t cx_pl_find( 118 static ssize_t cx_pl_find(
119 struct cx_list_s const *list, 119 struct cx_list_s const *list,
120 void const *elem 120 void const *elem
121 ) { 121 ) {
122 cx_pl_hack_cmpfunc(list); 122 cx_pl_hack_cmpfunc(list);
123 size_t ret = list->climpl->find(list, &elem); 123 ssize_t ret = list->climpl->find(list, &elem);
124 cx_pl_unhack_cmpfunc(list); 124 cx_pl_unhack_cmpfunc(list);
125 return ret; 125 return ret;
126 } 126 }
127 127
128 static void cx_pl_sort(struct cx_list_s *list) { 128 static void cx_pl_sort(struct cx_list_s *list) {

mercurial