mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
aco/util: fix bit_reference::operator&=
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Backport-to: 24.3 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32944>
This commit is contained in:
parent
4ff5672730
commit
46787fc2d0
1 changed files with 1 additions and 1 deletions
|
|
@ -793,7 +793,7 @@ template <typename T> struct bit_reference {
|
|||
|
||||
constexpr bit_reference& operator&=(bool val)
|
||||
{
|
||||
storage &= T(val) << bit;
|
||||
storage &= ~(T(!val) << bit);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue