]> git.llucax.com Git - software/eventxx.git/commitdiff
Fix inifinite recursion when using operator| for eventxx::type.
authorLeandro Lucarella <llucarella@integratech.com.ar>
Sat, 24 Mar 2007 22:58:27 +0000 (22:58 +0000)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Sat, 24 Mar 2007 22:58:27 +0000 (22:58 +0000)
eventxx

diff --git a/eventxx b/eventxx
index 922a323f5802fa5c1277a5851beb80f89c13f145..c5f13d1480f8a41c4cb05af1d7ac767ea7cb3410 100644 (file)
--- 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);
 }