2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Common: Fix mask generation in BitField

Fixes #913
This commit is contained in:
Yuri Kunde Schlesner 2015-07-10 18:01:56 -03:00
parent ac7bc214ab
commit d7f9529bdd

View file

@ -188,7 +188,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;