From e75b55115969ee099ab98e751d06b5b578488bf6 Mon Sep 17 00:00:00 2001 From: ToyB-Chan Date: Wed, 10 Jun 2026 22:41:41 +0200 Subject: [PATCH] uintptr_t --- minimal_heap_implementation.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minimal_heap_implementation.inl b/minimal_heap_implementation.inl index cc88c8c..331ddf8 100644 --- a/minimal_heap_implementation.inl +++ b/minimal_heap_implementation.inl @@ -453,7 +453,7 @@ bool MIHP_IsPointerInHeap(MIHP_Heap* heap, void* ptr) MIHP_LockHeap(heap); - size_t searchingPtr = (size_t)ptr; + uintptr_t searchingPtr = (uintptr_t)ptr; MIHP_HeapMemoryAreaHeader* nextArea = heap->FirstArea; while (nextArea) @@ -462,8 +462,8 @@ bool MIHP_IsPointerInHeap(MIHP_Heap* heap, void* ptr) MIHP_ValidateHeapMemoryAreaHeader(heap, currentArea); nextArea = currentArea->NextArea; - size_t ptrMin = (size_t)currentArea; - size_t ptrMax = (size_t)currentArea + currentArea->AreaSize; + uintptr_t ptrMin = (uintptr_t)currentArea; + uintptr_t ptrMax = (uintptr_t)currentArea + currentArea->AreaSize; if (searchingPtr >= ptrMin && searchingPtr <= ptrMax) {