We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6790989 commit 29fc941Copy full SHA for 29fc941
crates/bpe/src/bitfield.rs
@@ -8,7 +8,7 @@ impl BitField {
8
/// All bits are initialized to 1.
9
pub(crate) fn new(bits: usize) -> Self {
10
Self {
11
- bitfield: vec![u64::MAX; (bits + 63) / 64],
+ bitfield: vec![u64::MAX; bits.div_ceil(64)],
12
}
13
14
0 commit comments