@@ -1147,8 +1147,8 @@ static void PrintVmmap() {
1147
1147
lastsz += vmsize;
1148
1148
} else {
1149
1149
if (lastsz)
1150
- Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , last,
1151
- last + lastsz, lastsz);
1150
+ Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , ( void *) last,
1151
+ ( void *)( last + lastsz) , lastsz);
1152
1152
1153
1153
last = address;
1154
1154
lastsz = vmsize;
@@ -1158,8 +1158,8 @@ static void PrintVmmap() {
1158
1158
// We've reached the end of the memory map. Print the last remaining
1159
1159
// region, if there is one.
1160
1160
if (lastsz)
1161
- Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , last,
1162
- last + lastsz, lastsz);
1161
+ Printf (" || `[%p, %p]` || size=0x%016" PRIx64 " ||\n " , ( void *) last,
1162
+ ( void *)( last + lastsz) , lastsz);
1163
1163
1164
1164
break ;
1165
1165
}
@@ -1170,7 +1170,7 @@ static void ReportShadowAllocFail(uptr shadow_size_bytes, uptr alignment) {
1170
1170
Report (
1171
1171
" FATAL: Failed to allocate shadow memory. Tried to allocate %p bytes "
1172
1172
" (alignment=%p).\n " ,
1173
- shadow_size_bytes, alignment);
1173
+ ( void *) shadow_size_bytes, ( void *) alignment);
1174
1174
PrintVmmap ();
1175
1175
}
1176
1176
0 commit comments