mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 21:38:01 +03:00
Fix bitfield operator &=
This commit is contained in:
parent
d489b02fc1
commit
b48c036636
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue