Bitset: Make cast overrides const

This commit is contained in:
Scott Mansell 2015-10-04 00:33:24 +13:00
parent 6658d21215
commit 83fa504cd9

View File

@ -164,8 +164,8 @@ public:
BitSet& operator|=(BitSet other) { return *this = *this | other; }
BitSet& operator&=(BitSet other) { return *this = *this & other; }
BitSet& operator^=(BitSet other) { return *this = *this ^ other; }
operator u32() = delete;
operator bool() { return m_val != 0; }
operator u32() const = delete;
operator bool() const { return m_val != 0; }
// Warning: Even though on modern CPUs this is a single fast instruction,
// Dolphin's official builds do not currently assume POPCNT support on x86,