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

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



On Sun, Jan 8, 2012 at 1:48 PM, Mark Heily <mark@xxxxxxxxx> 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 for details.

Thanks! A couple of these were harmless (since they only handled
signals, which fit neatly into an int), but there was no point in not
fixing them anyway.

Commit f03251671879fdc9fb37acd6e724c65adfc43bd6 has the fix; please have a look.

-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.