Skip to content

Commit

Permalink
Fix out of bounds extend in test
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Sep 6, 2022
1 parent 25d4b2d commit 178fd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ fn oddly_sized_heap_extension() {
#[test]
fn extend_odd_size() {
// define an array of `u64` instead of `u8` for alignment
static mut HEAP: [u64; 5] = [0; 5];
static mut HEAP: [u64; 6] = [0; 6];
unsafe {
let mut heap = Heap::new(HEAP.as_mut_ptr().cast(), 17);
assert_eq!(1, heap.holes.pending_extend);
Expand Down

0 comments on commit 178fd2f

Please sign in to comment.