From 83fa504cd92a9924b529f7d01d5454713bfb9298 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 4 Oct 2015 00:33:24 +1300 Subject: [PATCH] Bitset: Make cast overrides const --- Source/Core/Common/BitSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/BitSet.h b/Source/Core/Common/BitSet.h index caa59c150f..6abae8bf22 100644 --- a/Source/Core/Common/BitSet.h +++ b/Source/Core/Common/BitSet.h @@ -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,