Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index e0bcb34691dbe60d9eb42e792f8f3d68a7c3a74d..a78142aebab21e6f6b92b3c13b959f1c04cb3017 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -214,7 +214,10 @@ void OS::LogSharedLibraryAddresses() { |
#if V8_HOST_ARCH_X64 |
uint64_t size; |
char* code_ptr = getsectdatafromheader_64( |
- (mach_header_64*)header, SEG_TEXT, SECT_TEXT, &size); |
+ reinterpret_cast<const mach_header_64*>(header), |
+ SEG_TEXT, |
+ SECT_TEXT, |
+ &size); |
#else |
unsigned int size; |
char* code_ptr = getsectdatafromheader(header, SEG_TEXT, SECT_TEXT, &size); |