Skip to content

Commit

Permalink
fix(no_std): use core::slice in bitmap_store.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker authored Dec 8, 2024
1 parent 00992ee commit 8e760c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roaring/src/bitmap/store/bitmap_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl BitmapStore {
// Safety: It's safe to reinterpret u64s as u8s because u8 has less alignment requirements,
// and has no padding/uninitialized data.
let dst = unsafe {
std::slice::from_raw_parts_mut(bits.as_mut_ptr().cast::<u8>(), BITMAP_BYTES)
core::slice::from_raw_parts_mut(bits.as_mut_ptr().cast::<u8>(), BITMAP_BYTES)
};
let dst = &mut dst[byte_offset..][..bytes.len()];
dst.copy_from_slice(bytes);
Expand Down

0 comments on commit 8e760c9

Please sign in to comment.