mirror of
https://github.com/gperftools/gperftools
synced 2025-01-03 05:02:04 +00:00
avoid casting NULL to uinptr_t
Which somehow fails to compile on musl. Fixes issue #1338.
This commit is contained in:
parent
fe85bbdf4c
commit
6c99def347
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user