diff --git a/Source/Core/Common/BitField.h b/Source/Core/Common/BitField.h index 14c03973ad..75a5b104fd 100644 --- a/Source/Core/Common/BitField.h +++ b/Source/Core/Common/BitField.h @@ -156,7 +156,7 @@ public: if (std::numeric_limits::is_signed) { std::size_t shift = 8 * sizeof(T) - bits; - return (T)(((storage & GetMask()) << (shift - position)) >> shift); + return (T)((storage << (shift - position)) >> shift); } else {