From: Leandro Lucarella Date: Wed, 13 Feb 2008 21:35:53 +0000 (-0200) Subject: Bugfix: explicit cast functions returning bool. X-Git-Tag: 0.1~4 X-Git-Url: https://git.llucax.com/software/ev.d.git/commitdiff_plain/34195d6560498fdddedaea0934e8e3a51f53d929?hp=6d51db70ae4f7c013dd9709e7ccb6e6857456970 Bugfix: explicit cast functions returning bool. Signed-off-by: Leandro Lucarella --- diff --git a/ev/c.d b/ev/c.d index 70f9532..c19e15b 100644 --- a/ev/c.d +++ b/ev/c.d @@ -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)