From: Leandro Lucarella Date: Sat, 24 Mar 2007 22:58:27 +0000 (+0000) Subject: Fix inifinite recursion when using operator| for eventxx::type. X-Git-Tag: 0.4~2 X-Git-Url: https://git.llucax.com/software/eventxx.git/commitdiff_plain/18e76f719c0e0d2b67b740ccfcc094a171a009d1?ds=inline Fix inifinite recursion when using operator| for eventxx::type. --- diff --git a/eventxx b/eventxx index 922a323..c5f13d1 100644 --- a/eventxx +++ b/eventxx @@ -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); }