Skip to content

Commit 1bf005a

Browse files
fixup! test: fully add the empty space to heap.
* This fixes commit 95ed662 Signed-off-by: bigsaltyfishes <bigsaltyfishes@gmail.com>
1 parent 95ed662 commit 1bf005a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn test_heap_add_large() {
6969
// 512 bytes of space
7070
let space: [u8; 512] = [0; 512];
7171
unsafe {
72-
heap.add_to_heap(space.as_ptr() as usize, space.as_ptr().add(100) as usize);
72+
heap.add_to_heap(space.as_ptr() as usize, space.as_ptr().add(512) as usize);
7373
}
7474
let addr = heap.alloc(Layout::from_size_align(1, 1).unwrap());
7575
assert!(addr.is_ok());

0 commit comments

Comments
 (0)