summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/enum-operators.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/enum-operators.hpp b/compat/enum-operators.hpp
index dc39f2f1..cefebaf0 100644
--- a/compat/enum-operators.hpp
+++ b/compat/enum-operators.hpp
@@ -16,7 +16,7 @@
inline type operator op (type x) \
{ \
using t__ = std::underlying_type_t<type>; \
- return static_cast<type>(t__((x))); \
+ return type(op t_((x))); \
} // end
#define DEFINE_ENUM_OPERATORS(type) \