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);