We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95ed662 commit 1bf005aCopy full SHA for 1bf005a
src/test.rs
@@ -69,7 +69,7 @@ fn test_heap_add_large() {
69
// 512 bytes of space
70
let space: [u8; 512] = [0; 512];
71
unsafe {
72
- 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);
73
}
74
let addr = heap.alloc(Layout::from_size_align(1, 1).unwrap());
75
assert!(addr.is_ok());
0 commit comments