Revision: 2813 Author: [email protected] Date: Wed Sep 2 02:04:55 2009 Log: Fixed cast in platform-macos.cc
[email protected] Review URL: http://codereview.chromium.org/171114 http://code.google.com/p/v8/source/detail?r=2813 Modified: /branches/bleeding_edge/src/platform-macos.cc ======================================= --- /branches/bleeding_edge/src/platform-macos.cc Wed Sep 2 01:18:27 2009 +++ /branches/bleeding_edge/src/platform-macos.cc Wed Sep 2 02:04:55 2009 @@ -214,7 +214,10 @@ #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); --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
