mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Common: Fix mask generation in BitField
This commit is contained in:
parent
ced89be3b7
commit
c334a6ca65
@ -183,7 +183,7 @@ private:
|
|||||||
|
|
||||||
__forceinline StorageType GetMask() const
|
__forceinline StorageType GetMask() const
|
||||||
{
|
{
|
||||||
return ((~(StorageTypeU)0) >> (8 * sizeof(T) - bits)) << position;
|
return (((StorageTypeU)~0) >> (8 * sizeof(T) - bits)) << position;
|
||||||
}
|
}
|
||||||
|
|
||||||
StorageType storage;
|
StorageType storage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user