1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Fix bitfield operator &=

This commit is contained in:
Eladash 2020-09-10 19:13:56 +03:00 committed by Megamouse
parent d489b02fc1
commit b48c036636

View File

@ -147,7 +147,7 @@ struct bf_t : bf_base<T, N>
bf_t& operator &=(vtype right)
{
this->m_data &= static_cast<vtype>((static_cast<utype>(right) & bf_t::vmask) << bitpos);
this->m_data &= static_cast<vtype>(((static_cast<utype>(right) & bf_t::vmask) << bitpos) | ~(bf_t::vmask << bitpos));
return *this;
}