Index: third_party/tcmalloc/chromium/src/heap-profile-table.cc |
diff --git a/third_party/tcmalloc/chromium/src/heap-profile-table.cc b/third_party/tcmalloc/chromium/src/heap-profile-table.cc |
index d880e562bda40757b82db5c7a797cbc12bb4a945..1e0eea5e115b6a8688bc2ea32e32f84d3ae96037 100644 |
--- a/third_party/tcmalloc/chromium/src/heap-profile-table.cc |
+++ b/third_party/tcmalloc/chromium/src/heap-profile-table.cc |
@@ -519,7 +519,7 @@ void HeapProfileTable::DumpMarkedIterator(const void* ptr, AllocValue* v, |
b.depth = v->bucket()->depth; |
b.stack = v->bucket()->stack; |
char addr[16]; |
- snprintf(addr, 16, "0x%08" PRIxPTR, ptr); |
+ snprintf(addr, 16, "0x%08" PRIxPTR, reinterpret_cast<uintptr_t>(ptr)); |
char buf[1024]; |
int len = UnparseBucket(b, buf, 0, sizeof(buf), addr, NULL); |
RawWrite(args.fd, buf, len); |