Formatting

parent 1bcdb459
Pipeline #5850 passed with stages
in 7 minutes and 34 seconds
use core::{convert::TryFrom, ptr};
use crate::{ use crate::{
header::{ header::{
errno::*, errno::*,
...@@ -6,6 +5,7 @@ use crate::{ ...@@ -6,6 +5,7 @@ use crate::{
}, },
platform::{self, types::*}, platform::{self, types::*},
}; };
use core::{convert::TryFrom, ptr};
// GNU extension, always declared in malloc.h. // GNU extension, always declared in malloc.h.
#[no_mangle] #[no_mangle]
...@@ -25,7 +25,7 @@ pub unsafe extern "C" fn pvalloc(size: size_t) -> *mut c_void { ...@@ -25,7 +25,7 @@ pub unsafe extern "C" fn pvalloc(size: size_t) -> *mut c_void {
} else { } else {
0 0
}; };
match num_pages.checked_mul(page_size) { match num_pages.checked_mul(page_size) {
Some(alloc_size) => { Some(alloc_size) => {
// Perform the allocation. // 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