]> git.llucax.com Git - software/ev.d.git/blobdiff - ev/c.d
Bugfix: explicit cast functions returning bool.
[software/ev.d.git] / ev / c.d
diff --git a/ev/c.d b/ev/c.d
index 3efcb678a76f47bd4bb6bcad755833c426b99be6..c19e15b1633dee84452459a2f1b847a7d1d1099d 100644 (file)
--- a/ev/c.d
+++ b/ev/c.d
@@ -261,7 +261,7 @@ void ev_set_allocator(void* function(void* ptr, int size));
 // set the callback function to call on a
 // retryable syscall error
 // (such as failed select, poll, epoll_wait)
-void ev_set_syserr_cb(void* function(char* msg));
+void ev_set_syserr_cb(void function(char* msg));
 
 extern ev_loop_t* ev_default_loop_ptr;
 
@@ -348,17 +348,17 @@ version (EV_EMBED_ENABLE)
 
 bool ev_is_pending(TYPE)(TYPE* w)
 {
-       return w.pending;
+       return cast (bool) w.pending;
 }
 
 bool ev_is_active(TYPE)(TYPE* w)
 {
-       return w.active;
+       return cast (bool) w.active;
 }
 
 int ev_priority(TYPE)(TYPE* w)
 {
-       return w.priority;
+       return cast (bool) w.priority;
 }
 
 void function(ev_loop_t*, TYPE*, int) ev_cb(TYPE)(TYPE* w)