--- libev/event.c 2007/11/09 21:48:23 1.25 +++ libev/event.c 2007/11/12 00:31:08 1.26 @@ -141,7 +141,7 @@ revents &= EV_READ | EV_WRITE | EV_TIMEOUT | EV_SIGNAL; ev->ev_res = revents; - ev->ev_callback (ev->ev_fd, revents, ev->ev_arg); + ev->ev_callback (ev->ev_fd, (short)revents, ev->ev_arg); } static void @@ -358,7 +358,7 @@ { struct x_once *once = (struct x_once *)arg; - once->cb (once->fd, revents, once->arg); + once->cb (once->fd, (short)revents, once->arg); free (once); }