@@ -1141,8 +1141,8 @@ static void PrintVmmap() {
11411141 lastsz += vmsize;
11421142 } else {
11431143 if (lastsz)
1144- Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , last,
1145- last + lastsz, lastsz);
1144+ Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , ( void *) last,
1145+ ( void *)( last + lastsz) , lastsz);
11461146
11471147 last = address;
11481148 lastsz = vmsize;
@@ -1152,8 +1152,8 @@ static void PrintVmmap() {
11521152 // We've reached the end of the memory map. Print the last remaining
11531153 // region, if there is one.
11541154 if (lastsz)
1155- Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , last,
1156- last + lastsz, lastsz);
1155+ Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , ( void *) last,
1156+ ( void *)( last + lastsz) , lastsz);
11571157
11581158 break ;
11591159 }
@@ -1164,7 +1164,7 @@ static void ReportShadowAllocFail(uptr shadow_size_bytes, uptr alignment) {
11641164 Report (
11651165 " FATAL: Failed to allocate shadow memory. Tried to allocate %p bytes "
11661166 " (alignment=%p).\n " ,
1167- shadow_size_bytes, alignment);
1167+ ( void *) shadow_size_bytes, ( void *) alignment);
11681168 PrintVmmap ();
11691169}
11701170
0 commit comments