--- a/ucx/linked_list.c Tue Dec 30 21:39:38 2025 +0100 +++ b/ucx/linked_list.c Wed Dec 31 16:41:16 2025 +0100 @@ -105,7 +105,7 @@ ) { cx_compare_func_wrapper wrapper = {cmp_func}; return cx_linked_list_find_c(start, loc_advance, loc_data, - elem, found_index, cx_ccmp_wrap, &wrapper); + elem, found_index, cx_cmp_wrap, &wrapper); } void *cx_linked_list_first( @@ -420,7 +420,7 @@ cx_compare_func_wrapper wrapper = {cmp_func}; cx_linked_list_insert_sorted_chain_impl( begin, end, loc_prev, loc_next, - insert_begin, cx_ccmp_wrap, &wrapper, true); + insert_begin, cx_cmp_wrap, &wrapper, true); } int cx_linked_list_insert_unique( @@ -447,7 +447,7 @@ cx_compare_func_wrapper wrapper = {cmp_func}; return cx_linked_list_insert_sorted_chain_impl( begin, end, loc_prev, loc_next, - insert_begin, cx_ccmp_wrap, &wrapper, false); + insert_begin, cx_cmp_wrap, &wrapper, false); } void cx_linked_list_insert_sorted_c( @@ -717,7 +717,7 @@ cx_compare_func cmp_func ) { cx_compare_func_wrapper wrapper = {cmp_func}; - cx_linked_list_sort_c(begin, end, loc_prev, loc_next, loc_data, cx_ccmp_wrap, &wrapper); + cx_linked_list_sort_c(begin, end, loc_prev, loc_next, loc_data, cx_cmp_wrap, &wrapper); } int cx_linked_list_compare_c( @@ -753,7 +753,7 @@ ) { cx_compare_func_wrapper wrapper = {cmp_func}; return cx_linked_list_compare_c(begin_left, begin_right, - loc_advance, loc_data, cx_ccmp_wrap, &wrapper); + loc_advance, loc_data, cx_cmp_wrap, &wrapper); } void cx_linked_list_reverse( @@ -1384,8 +1384,8 @@ void cx_linked_list_extra_data(cx_linked_list *list, size_t len) { list->extra_data_len = len; - off_t loc_extra = list->loc_data + list->base.collection.elem_size; + off_t loc_extra = list->loc_data + (off_t) list->base.collection.elem_size; size_t alignment = alignof(void*); - size_t padding = alignment - (loc_extra % alignment); - list->loc_extra = loc_extra + padding; + size_t padding = alignment - ((size_t)loc_extra % alignment); + list->loc_extra = loc_extra + (off_t) padding; }