diff --git a/lib/common/DebugMemLeakFinder.cpp b/lib/common/DebugMemLeakFinder.cpp index 58a82c0e7..dd2c7949a 100644 --- a/lib/common/DebugMemLeakFinder.cpp +++ b/lib/common/DebugMemLeakFinder.cpp @@ -529,8 +529,8 @@ void memleakfinder_reportleaks_file(FILE *file) { if(is_leak(i->first)) { - ::fprintf(file, "Block %p size %d allocated at " - "%s:%d\n", i->first, i->second.size, + ::fprintf(file, "Block %p size %lu allocated at " + "%s:%d\n", i->first, (unsigned long)i->second.size, i->second.file, i->second.line); } } @@ -540,9 +540,9 @@ void memleakfinder_reportleaks_file(FILE *file) { if(is_leak(i->first)) { - ::fprintf(file, "Object%s %p size %d allocated at " + ::fprintf(file, "Object%s %p size %lu allocated at " "%s:%d\n", i->second.array?" []":"", - i->first, i->second.size, i->second.file, + i->first, (unsigned long)i->second.size, i->second.file, i->second.line); } }