Commit bf81680b authored by Ronan's avatar Ronan
Browse files

fix(EnumMask): add int cast on operator^ and operator|

parent 494baf59
......@@ -110,7 +110,7 @@ public:
}
constexpr EnumMask operator& (T mask) const {
return (int) (mMask & StorageType(mask));
return int(mMask & StorageType(mask));
}
constexpr EnumMask operator| (EnumMask mask) const {
......@@ -118,7 +118,7 @@ public:
}
constexpr EnumMask operator| (T mask) const {
return mMask | StorageType(mask);
return int(Mask | StorageType(mask));
}
constexpr EnumMask operator^ (EnumMask mask) const {
......@@ -126,7 +126,7 @@ public:
}
constexpr EnumMask operator^ (T mask) const {
return mMask ^ StorageType(mask);
return int(mMask ^ StorageType(mask));
}
constexpr EnumMask operator~ () const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment