fixed typo

This commit is contained in:
Erin 2023-01-07 22:19:17 +01:00 committed by ondra05
parent d3d52c974a
commit 7ac54e5ec8

View file

@ -148,7 +148,7 @@ impl Heap {
aligned_first_chunk + chunks_needed <= first_chunk + chunks_needed + chunk_alignment aligned_first_chunk + chunks_needed <= first_chunk + chunks_needed + chunk_alignment
); );
let header = add as *mut Header; let header = addr as *mut Header;
unsafe { unsafe {
(*header).size_in_chunks = chunks_needed; (*header).size_in_chunks = chunks_needed;
} }