diff options
Diffstat (limited to 'Kernel/VM/PhysicalRegion.cpp')
-rw-r--r-- | Kernel/VM/PhysicalRegion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/VM/PhysicalRegion.cpp b/Kernel/VM/PhysicalRegion.cpp index 5539e29e91..cad0d255e2 100644 --- a/Kernel/VM/PhysicalRegion.cpp +++ b/Kernel/VM/PhysicalRegion.cpp @@ -101,11 +101,11 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr) ASSERT_NOT_REACHED(); } - int local_offset = addr.get() - m_lower.get(); + ptrdiff_t local_offset = addr.get() - m_lower.get(); ASSERT(local_offset >= 0); - ASSERT((u32)local_offset < (u32)(m_pages * PAGE_SIZE)); + ASSERT((uintptr_t)local_offset < (uintptr_t)(m_pages * PAGE_SIZE)); - auto page = (unsigned)local_offset / PAGE_SIZE; + auto page = (uintptr_t)local_offset / PAGE_SIZE; if (page < m_last) m_last = page; |