srdja / Collections-C

A library of generic data structures for the C language.

Home Page:http://srdja.github.io/Collections-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

FXD-jl opened this issue · comments

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);"

@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!