ev_set_allocator takes signed size
Samuel Williams
space.ship.traveller at gmail.com
Sun Mar 17 23:28:11 CET 2019
Is there some reason why ev_set_allocator is defined as:
EV_API_DECL void ev_set_allocator (void *(*cb)(void *ptr, long size)
EV_NOEXCEPT) EV_NOEXCEPT;
And not as:
EV_API_DECL void ev_set_allocator (void *(*cb)(void *ptr, size_t size)
EV_NOEXCEPT) EV_NOEXCEPT;
Because this produces warnings when trying to use `realloc` style
functions, defined as:
void * realloc(void *ptr, size_t size);
where size_t is unsigned.
Kind regards,
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20190318/c4f21c43/attachment.html>
More information about the libev
mailing list