koka-lang/libhandler

Standard `free()` does not have const argument

alexreinking opened this issue · 2 comments

The typedef for lh_freefun currently has an argument type of const void *, which is non-conforming with the C standard library. Per the C11 standard, section 7.22.3.3, free is defined to have the following signature:

void free(void *ptr);

Can this typedef be updated in libhandler? It currently generates warning C4028 in MSVC when trying to pass the standard free function.

daanx commented

Fixed by f70c600 :-)

Awesome, @daanx ! Thanks!