]> git.llucax.com Git - software/libev.git/blobdiff - event.c
*** empty log message ***
[software/libev.git] / event.c
diff --git a/event.c b/event.c
index 8fed83d75fd1a4552a60aaa932e93ac1c2e2a7ef..5dc0da6a2f7db34e3ab183423bd561a853f1cfc6 100644 (file)
--- a/event.c
+++ b/event.c
@@ -141,7 +141,7 @@ x_cb (struct event *ev, int revents)
   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 @@ x_once_cb (int revents, void *arg)
 {
   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);
 }