Use the more appropriate size_t
This commit is contained in:
parent
5abd8814e3
commit
177282d79c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user