summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2022-05-30 19:50:19 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2022-05-30 19:58:15 -0700
commit6c99def347460adbb9f17815feb641cf5474548e (patch)
treea2994aade95f9bfa75bfaca16b0394eac6821005
parentfe85bbdf4cb891a67a8e2109c1c22a33aa958c7e (diff)
downloadgperftools-6c99def347460adbb9f17815feb641cf5474548e.tar.gz
avoid casting NULL to uinptr_t
Which somehow fails to compile on musl. Fixes issue #1338.
-rw-r--r--src/heap-checker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heap-checker.cc b/src/heap-checker.cc
index 199fc93..63b99c8 100644
--- a/src/heap-checker.cc
+++ b/src/heap-checker.cc
@@ -1168,7 +1168,7 @@ void HeapLeakChecker::IgnoreNonThreadLiveObjectsLocked() {
// any allocator on top of mmap.
bool subtract = true;
if (!region->is_stack && global_region_caller_ranges) {
- if (region->caller() == static_cast<uintptr_t>(NULL)) {
+ if (region->caller() == 0) {
have_null_region_callers = true;
} else {
GlobalRegionCallerRangeMap::const_iterator iter