mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
nak/bitset: Fix next_set()
It was resetting mask to 0 instead of u32::MAX. This is a copy+paste error from when I copied it from next_unset() and tweaked it to find set bits. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
2cc51639ab
commit
009ae6e7f5
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ impl BitSet {
|
|||
if b < 32 {
|
||||
return Some(w * 32 + usize::try_from(b).unwrap());
|
||||
}
|
||||
mask = 0;
|
||||
mask = u32::MAX;
|
||||
w += 1;
|
||||
}
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue