X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fmode.h;h=c58ecb0bd55894474b5b828859a7ea9939d5bef0;hp=1d944b11b3326bd64bf0e3ad3aeebd0d99d2492a;hb=21bf2db4f8600a576dc8d6bfa82bb83e64d8424f;hpb=528bc5708065a8c6d21c49fd64473570e974aee0 diff --git a/source/mode.h b/source/mode.h index 1d944b1..c58ecb0 100644 --- a/source/mode.h +++ b/source/mode.h @@ -21,13 +21,13 @@ enum Mode }; inline Mode operator|(Mode m, Mode n) -{ return Mode((int)m|(int)n); } +{ return Mode(static_cast(m)|static_cast(n)); } inline Mode operator&(Mode m, Mode n) -{ return Mode((int)m&(int)n); } +{ return Mode(static_cast(m)&static_cast(n)); } inline Mode operator~(Mode m) -{ return Mode(~(int)m); } +{ return Mode(~static_cast(m)); } } // namespace IO } // namespace Msp