diff --git a/Kernel/Memory/PhysicalRegion.cpp b/Kernel/Memory/PhysicalRegion.cpp index 3e30f0f3c70..6437f96d908 100644 --- a/Kernel/Memory/PhysicalRegion.cpp +++ b/Kernel/Memory/PhysicalRegion.cpp @@ -63,7 +63,7 @@ void PhysicalRegion::initialize_zones() make_zones(small_zone_size); } -OwnPtr PhysicalRegion::try_take_pages_from_beginning(unsigned page_count) +OwnPtr PhysicalRegion::try_take_pages_from_beginning(size_t page_count) { VERIFY(page_count > 0); VERIFY(page_count < m_pages); diff --git a/Kernel/Memory/PhysicalRegion.h b/Kernel/Memory/PhysicalRegion.h index 19c527f7f1b..31ffdba97b8 100644 --- a/Kernel/Memory/PhysicalRegion.h +++ b/Kernel/Memory/PhysicalRegion.h @@ -28,10 +28,10 @@ public: PhysicalAddress lower() const { return m_lower; } PhysicalAddress upper() const { return m_upper; } - unsigned size() const { return m_pages; } + size_t size() const { return m_pages; } bool contains(PhysicalAddress paddr) const { return paddr >= m_lower && paddr < m_upper; } - OwnPtr try_take_pages_from_beginning(unsigned); + OwnPtr try_take_pages_from_beginning(size_t); RefPtr take_free_page(); NonnullRefPtrVector take_contiguous_free_pages(size_t count); @@ -52,7 +52,7 @@ private: PhysicalAddress m_lower; PhysicalAddress m_upper; - unsigned m_pages { 0 }; + size_t m_pages { 0 }; }; }