summaryrefslogtreecommitdiff
path: root/Kernel/VM/PhysicalRegion.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-22 16:22:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-22 16:22:34 +0200
commit46a06c23e30668d90cb5efb44eab05bb4577d08d (patch)
tree44749101e59434822b7f7f8f7e51fd184206d3d5 /Kernel/VM/PhysicalRegion.cpp
parent17acc1e0a862ed03dd1613851d4f9caec5297a50 (diff)
downloadserenity-46a06c23e30668d90cb5efb44eab05bb4577d08d.zip
Kernel: Fix all compiler warnings.
Diffstat (limited to 'Kernel/VM/PhysicalRegion.cpp')
-rw-r--r--Kernel/VM/PhysicalRegion.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Kernel/VM/PhysicalRegion.cpp b/Kernel/VM/PhysicalRegion.cpp
index 1aa2b73caf..af0947cc57 100644
--- a/Kernel/VM/PhysicalRegion.cpp
+++ b/Kernel/VM/PhysicalRegion.cpp
@@ -78,10 +78,11 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr)
int local_offset = addr.get() - m_lower.get();
ASSERT(local_offset >= 0);
- ASSERT(local_offset < m_pages * PAGE_SIZE);
+ ASSERT(local_offset < (int)(m_pages * PAGE_SIZE));
- auto page = local_offset / PAGE_SIZE;
- if (page < m_last) m_last = page;
+ auto page = (unsigned)local_offset / PAGE_SIZE;
+ if (page < m_last)
+ m_last = page;
m_bitmap.set(page, false);
m_used--;