Fix compile errors on GCC

This commit is contained in:
Connor McLaughlin
2019-11-03 00:15:42 +10:00
parent 6dc7069d7c
commit 5abbdef065
6 changed files with 15 additions and 9 deletions

View File

@ -130,7 +130,7 @@ struct BitField
ALWAYS_INLINE void SetValue(DataType value)
{
data = (data & ~GetMask()) | (static_cast<BackingDataType>(value) << BitIndex) & GetMask();
data = (data & ~GetMask()) | ((static_cast<BackingDataType>(value) << BitIndex) & GetMask());
}
BackingDataType data;