X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/74dd493396de3a10431274f3a96f660b7eb7483c..18e76f719c0e0d2b67b740ccfcc094a171a009d1:/eventxx diff --git a/eventxx b/eventxx index d599f64..c5f13d1 100644 --- a/eventxx +++ b/eventxx @@ -158,7 +158,7 @@ * * @author Leandro Lucarella * - * @version 0.2 + * @version 0.3 * * @par License * This program is under the BOLA license (see @@ -416,7 +416,7 @@ enum type type operator| (const type& t1, const type& t2) { - int r = t1 | t2; + int r = static_cast< int >(t1) | static_cast< int >(t2); return *reinterpret_cast< type* >(&r); } @@ -1007,7 +1007,7 @@ struct dispatcher protected: internal::event_base* _event_base; template < typename F > - static void wrapper(int fd, type ev, void* h) + static void wrapper(int fd, short ev, void* h) { F& handler = *reinterpret_cast< F* >(h); handler(fd, *reinterpret_cast< type* >(&ev));