aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-29 23:41:44 +0800
committercrupest <crupest@outlook.com>2020-03-29 23:41:44 +0800
commit7dd9494e957af8280f7221395333f886c500edf5 (patch)
tree8912fe7d3be5e4479bc801c8c524bae0a97b98fe /include/cru/common
parent725d296ff1d58451010295b2dff1a95a18623c44 (diff)
downloadcru-7dd9494e957af8280f7221395333f886c500edf5.tar.gz
cru-7dd9494e957af8280f7221395333f886c500edf5.tar.bz2
cru-7dd9494e957af8280f7221395333f886c500edf5.zip
...
Diffstat (limited to 'include/cru/common')
-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;
}