From d5416fb1391a41f96534f8a9ce22ff503ce2d3a8 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 30 Oct 2012 19:24:05 +0100 Subject: [PATCH] Fixed cast Former-commit-id: 2cbcf9c10c0d2bfd2cf441528ddf712bee80d7bd --- src/Nazara/Core/Debug/MemoryLeakTracker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Core/Debug/MemoryLeakTracker.cpp b/src/Nazara/Core/Debug/MemoryLeakTracker.cpp index 8137ab9bb..eea5a287b 100644 --- a/src/Nazara/Core/Debug/MemoryLeakTracker.cpp +++ b/src/Nazara/Core/Debug/MemoryLeakTracker.cpp @@ -232,9 +232,9 @@ void NzMemoryManager::Uninitialize() std::fprintf(log, "%s ==============================\n\n", time); std::fputs("Leak list:\n", log); + std::size_t totalSize = 0; Block* ptr = ptrList.next; unsigned int count = 0; - unsigned int totalSize = 0; while (ptr != &ptrList) { count++; @@ -249,7 +249,7 @@ void NzMemoryManager::Uninitialize() std::free(pointer); } - std::fprintf(log, "\n%u blocks leaked (%u bytes)", count, totalSize); + std::fprintf(log, "\n%u blocks leaked (" SIZE_T_SPECIFIER " bytes)", count, totalSize); } std::free(time);