Formatting

parent 1bcdb459
Pipeline #5850 passed with stages
in 7 minutes and 34 seconds
use core::{convert::TryFrom, ptr};
use crate::{
header::{
errno::*,
......@@ -6,6 +5,7 @@ use crate::{
},
platform::{self, types::*},
};
use core::{convert::TryFrom, ptr};
// GNU extension, always declared in malloc.h.
#[no_mangle]
......@@ -25,7 +25,7 @@ pub unsafe extern "C" fn pvalloc(size: size_t) -> *mut c_void {
} else {
0
};
match num_pages.checked_mul(page_size) {
Some(alloc_size) => {
// Perform the allocation.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment