aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/bitmask.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/bitmask.hpp')
-rw-r--r--include/cru/common/bitmask.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/common/bitmask.hpp b/include/cru/common/bitmask.hpp
index 6dfb651c..95edee13 100644
--- a/include/cru/common/bitmask.hpp
+++ b/include/cru/common/bitmask.hpp
@@ -19,15 +19,15 @@ struct Bitmask final {
Bitmask operator^(Bitmask rhs) const { return Bitmask(value ^ rhs.value); }
Bitmask operator~() const { return Bitmask(~value); }
Bitmask& operator|=(Bitmask rhs) {
- value |= rhs;
+ value |= rhs.value;
return *this;
}
Bitmask& operator&=(Bitmask rhs) {
- value &= rhs;
+ value &= rhs.value;
return *this;
}
Bitmask& operator^=(Bitmask rhs) {
- value ^= rhs;
+ value ^= rhs.value;
return *this;
}