summaryrefslogtreecommitdiff
path: root/Kernel/VM/PhysicalRegion.cpp
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-09-17 10:00:35 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-09-17 09:27:23 +0200
commit224fbb7910a67943d34710c9b020fb91a9396914 (patch)
tree1ce6724fcfac6393be4870a2e2eb053bce87a896 /Kernel/VM/PhysicalRegion.cpp
parent9c5e3cd818fe099932b4a6d08975b1a83b2a1be8 (diff)
downloadserenity-224fbb7910a67943d34710c9b020fb91a9396914.zip
Kernel: Fix returning pages to regions >= 2GB
Diffstat (limited to 'Kernel/VM/PhysicalRegion.cpp')
-rw-r--r--Kernel/VM/PhysicalRegion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/PhysicalRegion.cpp b/Kernel/VM/PhysicalRegion.cpp
index 49a33e72c7..bc5f0d76ca 100644
--- a/Kernel/VM/PhysicalRegion.cpp
+++ b/Kernel/VM/PhysicalRegion.cpp
@@ -77,7 +77,7 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr)
int local_offset = addr.get() - m_lower.get();
ASSERT(local_offset >= 0);
- ASSERT(local_offset < (int)(m_pages * PAGE_SIZE));
+ ASSERT((u32)local_offset < (u32)(m_pages * PAGE_SIZE));
auto page = (unsigned)local_offset / PAGE_SIZE;
if (page < m_last)