Use the more appropriate size_t

This commit is contained in:
apio 2022-10-14 17:27:35 +02:00
parent 5abd8814e3
commit 177282d79c

View File

@ -1,12 +1,13 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
#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);
}