mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 22:47:15 -04:00
Fix paging::pages
This commit is contained in:
parent
be411b2d06
commit
cbf01d3a01
@ -273,7 +273,7 @@ void paging::finalize(){
|
||||
}
|
||||
|
||||
size_t paging::pages(size_t size){
|
||||
return size / PAGE_SIZE + size % PAGE_SIZE == 0 ? 0 : 1;
|
||||
return size / PAGE_SIZE + (size % PAGE_SIZE == 0 ? 0 : 1);
|
||||
}
|
||||
|
||||
//TODO Improve to support a status
|
||||
|
Loading…
x
Reference in New Issue
Block a user