From 177282d79c5ac189e2e234277436b1398837e275 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 14 Oct 2022 17:27:35 +0200 Subject: [PATCH] Use the more appropriate size_t --- kernel/include/utils/Addresses.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/include/utils/Addresses.h b/kernel/include/utils/Addresses.h index e006d7a0..23752357 100644 --- a/kernel/include/utils/Addresses.h +++ b/kernel/include/utils/Addresses.h @@ -1,12 +1,13 @@ #pragma once +#include #include #ifndef PAGE_SIZE #define PAGE_SIZE 4096 #endif -inline uintptr_t get_top_of_stack(uintptr_t bottom, uintptr_t stack_pages) +inline uintptr_t get_top_of_stack(uintptr_t bottom, size_t stack_pages) { return bottom + (stack_pages * PAGE_SIZE) - sizeof(uintptr_t); }