Skip to content

Commit

Permalink
miri
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuyukitanimura committed Aug 24, 2024
1 parent 68cdaf2 commit 1e9de38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arrow-buffer/src/util/bit_mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ fn set_upto_64bits(
/// The caller must ensure all arguments are within the valid range.
/// The caller must be aware `8 - count` bytes in the returned value are uninitialized.
#[inline]
#[cfg(not(miri))]
unsafe fn read_bytes_to_u64(data: &[u8], offset: usize, count: usize) -> u64 {
let mut tmp = std::mem::MaybeUninit::<u64>::uninit();
let src = data.as_ptr().add(offset);
Expand Down

0 comments on commit 1e9de38

Please sign in to comment.