1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +00:00

Kernel: Fix all compiler warnings.

This commit is contained in:
Andreas Kling 2019-06-22 16:22:34 +02:00
parent 17acc1e0a8
commit 46a06c23e3
13 changed files with 19 additions and 19 deletions

View file

@ -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--;