]> git.llucax.com Git - software/ev.d.git/commitdiff
Bugfix: explicit cast functions returning bool.
authorLeandro Lucarella <llucax@gmail.com>
Wed, 13 Feb 2008 21:35:53 +0000 (19:35 -0200)
committerLeandro Lucarella <llucax@gmail.com>
Wed, 13 Feb 2008 21:35:53 +0000 (19:35 -0200)
Signed-off-by: Leandro Lucarella <llucax@gmail.com>
ev/c.d

diff --git a/ev/c.d b/ev/c.d
index 70f953212c61b23123be802f64dabb31f6adc960..c19e15b1633dee84452459a2f1b847a7d1d1099d 100644 (file)
--- a/ev/c.d
+++ b/ev/c.d
@@ -348,17 +348,17 @@ version (EV_EMBED_ENABLE)
 
 bool ev_is_pending(TYPE)(TYPE* w)
 {
 
 bool ev_is_pending(TYPE)(TYPE* w)
 {
-       return w.pending;
+       return cast (bool) w.pending;
 }
 
 bool ev_is_active(TYPE)(TYPE* w)
 {
 }
 
 bool ev_is_active(TYPE)(TYPE* w)
 {
-       return w.active;
+       return cast (bool) w.active;
 }
 
 int ev_priority(TYPE)(TYPE* w)
 {
 }
 
 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)
 }
 
 void function(ev_loop_t*, TYPE*, int) ev_cb(TYPE)(TYPE* w)