Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Mar 7, 2025
1 parent 106260b commit 2d32fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/polars-core/src/chunked_array/comparison/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ impl ChunkEqualElement for ListChunked {}
impl ChunkEqualElement for ArrayChunked {}

#[cfg(test)]
#[clippy::allow(manual_repeat_n)]
mod test {
use std::iter::repeat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn encode<T: Unpackable>(unpacked: &[T], num_bits: usize, packed: &mut [u8])

let remainder = chunks.remainder();

let packed_size = (T::Unpacked::LENGTH * num_bits + 7) / 8;
let packed_size = (T::Unpacked::LENGTH * num_bits).div_ceil(8);
if !remainder.is_empty() {
let packed_chunks = packed.chunks_mut(packed_size);
let mut last_chunk = T::Unpacked::zero();
Expand Down

0 comments on commit 2d32fbc

Please sign in to comment.