diff options
| -rw-r--r-- | azalea-core/src/bitset.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-core/src/bitset.rs b/azalea-core/src/bitset.rs index c0f6bef1..d878bbf5 100644 --- a/azalea-core/src/bitset.rs +++ b/azalea-core/src/bitset.rs @@ -88,7 +88,7 @@ impl BitSet { return from_index; } - let mut word = !self.data[u] & (u64::MAX.wrapping_shl(from_index)); + let mut word = !self.data[u] & (u64::MAX.wrapping_shl(from_index.try_into().unwrap())); loop { if word != 0 { |
