From 7dd9494e957af8280f7221395333f886c500edf5 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 29 Mar 2020 23:41:44 +0800 Subject: ... --- include/cru/common/bitmask.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/cru/common') 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; } -- cgit v1.2.3