Skip to content

Commit

Permalink
Fix compile warnings about printf format strings in DebugMemLeakFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Jul 23, 2017
1 parent ada5e66 commit c3198ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/common/DebugMemLeakFinder.cpp
Expand Up @@ -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);
}
}
Expand All @@ -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);
}
}
Expand Down

0 comments on commit c3198ea

Please sign in to comment.