hashmap icon indicating copy to clipboard operation
hashmap copied to clipboard

incovenient function type in hashmap_set_key_alloc_funcs

Open pseregiet opened this issue 1 year ago • 1 comments

Because of the type of the free function this takes the most common use case of just passing 'free' produces a warning

Incompatible function pointer types initializing 'typeof (((&skined_anim_mngr.map))->map_types->t_key_free_func)' (aka 'void (*)(char *)') with an expression of type 'void (void *)'

Therefore wouldn't it make sense to change the type to void free(char *) ?

pseregiet avatar Jun 11 '23 11:06 pseregiet