srdja / Collections-C

A library of generic data structures for the C language.
http://srdja.github.io/Collections-C
GNU Lesser General Public License v3.0
2.8k stars 328 forks source link

file: cc_list.c function:static INLINE void merge(……) #164

Closed FXD-jl closed 7 months ago

FXD-jl commented 1 year ago

int c = cmp(&(l_part->data), &(r_part->data));

I think l_part->data is a void * value, why &? why not "int c = cmp(l_part->data, r_part->data);"

srdja commented 7 months ago

@FXD-jl Hi, sorry, this may be a late replay, it's a valid point, now that I've looked at it more closely. Thanks!