From 18e76f719c0e0d2b67b740ccfcc094a171a009d1 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 24 Mar 2007 22:58:27 +0000 Subject: [PATCH] Fix inifinite recursion when using operator| for eventxx::type. --- eventxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0