Common: Fix mask generation in BitField
This commit is contained in:
1 parent
ced89be3b7
commit
c334a6ca65
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user