Fixed cast
Former-commit-id: 2cbcf9c10c0d2bfd2cf441528ddf712bee80d7bd
This commit is contained in:
parent
1d217837cf
commit
d5416fb139
|
|
@ -232,9 +232,9 @@ void NzMemoryManager::Uninitialize()
|
||||||
std::fprintf(log, "%s ==============================\n\n", time);
|
std::fprintf(log, "%s ==============================\n\n", time);
|
||||||
std::fputs("Leak list:\n", log);
|
std::fputs("Leak list:\n", log);
|
||||||
|
|
||||||
|
std::size_t totalSize = 0;
|
||||||
Block* ptr = ptrList.next;
|
Block* ptr = ptrList.next;
|
||||||
unsigned int count = 0;
|
unsigned int count = 0;
|
||||||
unsigned int totalSize = 0;
|
|
||||||
while (ptr != &ptrList)
|
while (ptr != &ptrList)
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
|
|
@ -249,7 +249,7 @@ void NzMemoryManager::Uninitialize()
|
||||||
std::free(pointer);
|
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);
|
std::free(time);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue