Index: src/base/platform/platform-macos.cc |
diff --git a/src/base/platform/platform-macos.cc b/src/base/platform/platform-macos.cc |
index 419281f6694df572a12bd310a92dc8eebca0227a..ecd440c5a2e054d1d0740ea47b164d8498eb9832 100644 |
--- a/src/base/platform/platform-macos.cc |
+++ b/src/base/platform/platform-macos.cc |
@@ -86,10 +86,10 @@ std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() { |
char* code_ptr = getsectdatafromheader(header, SEG_TEXT, SECT_TEXT, &size); |
#endif |
if (code_ptr == NULL) continue; |
- const uintptr_t slide = _dyld_get_image_vmaddr_slide(i); |
+ const intptr_t slide = _dyld_get_image_vmaddr_slide(i); |
const uintptr_t start = reinterpret_cast<uintptr_t>(code_ptr) + slide; |
- result.push_back( |
- SharedLibraryAddress(_dyld_get_image_name(i), start, start + size)); |
+ result.push_back(SharedLibraryAddress(_dyld_get_image_name(i), start, |
+ start + size, slide)); |
} |
return result; |
} |