1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

fix another panic in bitset

This commit is contained in:
Ubuntu 2022-11-10 15:46:11 +00:00
parent 1fc42d7566
commit 8b3fe0b241

View file

@ -88,7 +88,7 @@ impl BitSet {
return from_index;
}
let mut word = !self.data[u] & (u64::MAX << from_index);
let mut word = !self.data[u] & (u64::MAX.wrapping_shl(from_index));
loop {
if word != 0 {