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:
parent
d489b02fc1
commit
b48c036636
@ -147,7 +147,7 @@ struct bf_t : bf_base<T, N>
|
|||||||
|
|
||||||
bf_t& operator &=(vtype right)
|
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;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user