From 009ae6e7f52242bf924fa2cb0a5809a5f4d506e6 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Sun, 8 Oct 2023 23:09:08 -0500 Subject: [PATCH] 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: --- src/nouveau/compiler/bitset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/bitset.rs b/src/nouveau/compiler/bitset.rs index 272ce60d7ef..5f79c86b675 100644 --- a/src/nouveau/compiler/bitset.rs +++ b/src/nouveau/compiler/bitset.rs @@ -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