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

BitField: Cast enum values to proper integer type.

This commit is contained in:
Tony Wasserka 2014-07-16 09:39:52 +02:00
parent cd1d5786d9
commit 0da8e2eacc

View file

@ -142,7 +142,7 @@ public:
__forceinline BitField& operator=(T val)
{
storage = (storage & ~GetMask()) | ((val << position) & GetMask());
storage = (storage & ~GetMask()) | (((StorageType)val << position) & GetMask());
return *this;
}