upgrades linked_list_allocator (#574)

This commit is contained in:
kaczmarczyck
2022-12-12 16:42:49 +01:00
committed by GitHub
parent f6e9e00b87
commit 6b5f6e53eb
3 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ static mut HEAP: Heap = Heap::empty();
#[no_mangle]
unsafe fn libtock_alloc_init(app_heap_start: usize, app_heap_size: usize) {
HEAP.init(app_heap_start, app_heap_size);
HEAP.init(app_heap_start as *mut u8, app_heap_size);
}
// With the "debug_allocations" feature, we use `AtomicUsize` to store the