From 7ac54e5ec83fac4a07d2fa0a1c371508d39745ba Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 7 Jan 2023 22:19:17 +0100 Subject: [PATCH] fixed typo --- kernel/src/allocator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/allocator.rs b/kernel/src/allocator.rs index 4c73d1ca..50fb3292 100644 --- a/kernel/src/allocator.rs +++ b/kernel/src/allocator.rs @@ -148,7 +148,7 @@ impl Heap { aligned_first_chunk + chunks_needed <= first_chunk + chunks_needed + chunk_alignment ); - let header = add as *mut Header; + let header = addr as *mut Header; unsafe { (*header).size_in_chunks = chunks_needed; }