[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] [BUG] casting from evutil_socket_t to int



I found a couple of places in event.c where the 'ev_fd' field of 'struct event' is cast from evutil_socket_t to an int. This field is a 64-bit pointer on 64-bit versions of MS Windows, and should not be cast to a 32-bit integer. See below for details.

Regards,

  - Mark


event.c:1361:    (*ev->ev_callback)((int)ev->ev_fd, ev->ev_res, ev->ev_arg);

event.c:1411:                   (*ev->ev_callback)(
event.c:1412: (int)ev->ev_fd, ev->ev_res, ev->ev_arg);
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.