From 0763f670435f30087d285077bf24bfbef9f76b11 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 24 Feb 2020 09:55:46 +0100 Subject: AK: Make Bitmap use size_t for its size Also rework its API's to return Optional instead of int with -1 as the error value. --- Kernel/VM/Region.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/VM/Region.cpp') diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp index 2c02c045d3..5f399acc72 100644 --- a/Kernel/VM/Region.cpp +++ b/Kernel/VM/Region.cpp @@ -164,7 +164,7 @@ u32 Region::cow_pages() const if (!m_cow_map) return 0; u32 count = 0; - for (int i = 0; i < m_cow_map->size(); ++i) + for (size_t i = 0; i < m_cow_map->size(); ++i) count += m_cow_map->get(i); return count; } -- cgit v1.2.3