diff --git a/Source/Core/Common/BitField.h b/Source/Core/Common/BitField.h index 0dda177b59..8ec80de9c0 100644 --- a/Source/Core/Common/BitField.h +++ b/Source/Core/Common/BitField.h @@ -147,7 +147,7 @@ public: return *this; } - __forceinline operator T() const + __forceinline T Value() const { if (std::numeric_limits::is_signed) { @@ -160,6 +160,11 @@ public: } } + __forceinline operator T() const + { + return Value(); + } + private: // StorageType is T for non-enum types and the underlying type of T if // T is an enumeration. Note that T is wrapped within an enable_if in the