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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user