From c10f0e5caf63fd591c64bef844b3e06bf4ab71dd Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 11 Jun 2022 22:24:55 +0300 Subject: [PATCH] Change types --- src/memory.cc | 4 ++-- src/memory.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/memory.cc b/src/memory.cc index cefcd5a..1386e8e 100644 --- a/src/memory.cc +++ b/src/memory.cc @@ -22,10 +22,10 @@ int gMemoryBlocksCurrentCount = 0; int gMemoryBlockMaximumCount = 0; // 0x51DEE4 -int gMemoryBlocksCurrentSize = 0; +size_t gMemoryBlocksCurrentSize = 0; // 0x51DEE8 -int gMemoryBlocksMaximumSize = 0; +size_t gMemoryBlocksMaximumSize = 0; // 0x4C5A80 char* internal_strdup(const char* string) diff --git a/src/memory.h b/src/memory.h index c6e0de4..3db421e 100644 --- a/src/memory.h +++ b/src/memory.h @@ -29,8 +29,8 @@ extern ReallocProc* gReallocProc; extern FreeProc* gFreeProc; extern int gMemoryBlocksCurrentCount; extern int gMemoryBlockMaximumCount; -extern int gMemoryBlocksCurrentSize; -extern int gMemoryBlocksMaximumSize; +extern size_t gMemoryBlocksCurrentSize; +extern size_t gMemoryBlocksMaximumSize; char* internal_strdup(const char* string); void* internal_malloc(size_t size);