diff --git a/src/obkrnl/src/malloc/stage2.rs b/src/obkrnl/src/malloc/stage2.rs index 367272c18..22ff5aa62 100644 --- a/src/obkrnl/src/malloc/stage2.rs +++ b/src/obkrnl/src/malloc/stage2.rs @@ -11,7 +11,7 @@ use core::alloc::Layout; /// This stage allocate a memory from a virtual memory management system. This struct is a merge of /// `malloc_type` and `malloc_type_internal` structure. pub struct Stage2 { - zones: [Vec>; size_of::() * 8 - 1], // kmemsize + kmemzones + zones: [Vec>; (usize::BITS - 1) as usize], // kmemsize + kmemzones } impl Stage2 {