X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/fbe9562600fa8735c078401aa604b49a5426b0e2..22b2a449105d7604f715c1afafeb4fe5ac473f1b:/event.c?ds=sidebyside diff --git a/event.c b/event.c index b34774c..cf7739c 100644 --- a/event.c +++ b/event.c @@ -91,7 +91,7 @@ void *event_init (void) #else assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !x_cur)); - x_cur = (struct event_base *)ev_default_loop (EVMETHOD_AUTO); + x_cur = (struct event_base *)(long)ev_default_loop (EVMETHOD_AUTO); #endif return x_cur;