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

2012-01-09 Thread Nick Mathewson
On Sun, Jan 8, 2012 at 1:48 PM, Mark Heily wrote: > 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

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

2012-01-08 Thread Mark Heily
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:(*e