Skip to content

Commit

Permalink
fixup! test: fully add the empty space to heap.
Browse files Browse the repository at this point in the history
* This fixes commit 95ed662

Signed-off-by: bigsaltyfishes <[email protected]>
  • Loading branch information
bigsaltyfishes committed Sep 21, 2024
1 parent 95ed662 commit 1bf005a
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 @@ -69,7 +69,7 @@ fn test_heap_add_large() {
// 512 bytes of space
let space: [u8; 512] = [0; 512];
unsafe {
heap.add_to_heap(space.as_ptr() as usize, space.as_ptr().add(100) as usize);
heap.add_to_heap(space.as_ptr() as usize, space.as_ptr().add(512) as usize);
}
let addr = heap.alloc(Layout::from_size_align(1, 1).unwrap());
assert!(addr.is_ok());
Expand Down

0 comments on commit 1bf005a

Please sign in to comment.