diff --git a/Source/Core/Common/BitField.h b/Source/Core/Common/BitField.h index 3b30a3cab0..14c03973ad 100644 --- a/Source/Core/Common/BitField.h +++ b/Source/Core/Common/BitField.h @@ -183,7 +183,7 @@ private: __forceinline StorageType GetMask() const { - return ((~(StorageTypeU)0) >> (8 * sizeof(T) - bits)) << position; + return (((StorageTypeU)~0) >> (8 * sizeof(T) - bits)) << position; } StorageType storage;