fixed typo

memory-manager
ondra05 2023-01-07 22:19:17 +01:00
parent 68b2b19514
commit d146172df3
No known key found for this signature in database
GPG Key ID: 110E9A6F7CBA6712
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}