Common: Fix mask generation in BitField

This commit is contained in:
Yuri Kunde Schlesner 2015-07-11 22:27:56 -04:00 committed by Lioncash
parent ced89be3b7
commit c334a6ca65
1 changed files with 1 additions and 1 deletions

View File

@ -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;