diff options
author | crupest <crupest@outlook.com> | 2020-03-29 23:41:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-29 23:41:44 +0800 |
commit | 7dd9494e957af8280f7221395333f886c500edf5 (patch) | |
tree | 8912fe7d3be5e4479bc801c8c524bae0a97b98fe /include/cru/common | |
parent | 725d296ff1d58451010295b2dff1a95a18623c44 (diff) | |
download | cru-7dd9494e957af8280f7221395333f886c500edf5.tar.gz cru-7dd9494e957af8280f7221395333f886c500edf5.tar.bz2 cru-7dd9494e957af8280f7221395333f886c500edf5.zip |
...
Diffstat (limited to 'include/cru/common')
-rw-r--r-- | include/cru/common/bitmask.hpp | 6 |
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; } |