Skip to content

Commit 0f24df1

Browse files
committed
Fix out of bounds extend in test
1 parent 47a1de2 commit 0f24df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ fn oddly_sized_heap_extension() {
532532
#[test]
533533
fn extend_odd_size() {
534534
// define an array of `u64` instead of `u8` for alignment
535-
static mut HEAP: [u64; 5] = [0; 5];
535+
static mut HEAP: [u64; 6] = [0; 6];
536536
unsafe {
537537
let mut heap = Heap::new(HEAP.as_mut_ptr().cast(), 17);
538538
assert_eq!(1, heap.holes.pending_extend);

0 commit comments

Comments
 (0)