diff --git a/kernel/src/paging.cpp b/kernel/src/paging.cpp index c43ef9f6..bad31843 100644 --- a/kernel/src/paging.cpp +++ b/kernel/src/paging.cpp @@ -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