X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpoll.h;h=3bc14701d487ffccad35e4d8740996642595346b;hp=6ac6149b155b1634b9835a87233342e51fdd25b1;hb=21bf2db4f8600a576dc8d6bfa82bb83e64d8424f;hpb=528bc5708065a8c6d21c49fd64473570e974aee0;ds=sidebyside diff --git a/source/poll.h b/source/poll.h index 6ac6149..3bc1470 100644 --- a/source/poll.h +++ b/source/poll.h @@ -31,13 +31,13 @@ enum PollEvent }; inline PollEvent operator|(PollEvent e, PollEvent f) -{ return PollEvent((int)e|(int)f); } +{ return PollEvent(static_cast(e)|static_cast(f)); } inline PollEvent operator&(PollEvent e, PollEvent f) -{ return PollEvent((int)e&(int)f); } +{ return PollEvent(static_cast(e)&static_cast(f)); } inline PollEvent operator~(PollEvent e) -{ return PollEvent(~(int)e); } +{ return PollEvent(~static_cast(e)); } class Poller {