Skip to content

Commit

Permalink
Fixes clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Sep 7, 2024
1 parent a681fed commit 302970f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obkrnl/src/malloc/stage2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<UmaZone>>; size_of::<usize>() * 8 - 1], // kmemsize + kmemzones
zones: [Vec<Arc<UmaZone>>; (usize::BITS - 1) as usize], // kmemsize + kmemzones
}

impl Stage2 {
Expand Down

0 comments on commit 302970f

Please sign in to comment.