mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Fix More Casts
Fix another cast-away-const cast. llvm-svn: 172466
This commit is contained in:
parent
6637296080
commit
0f0e064b65
@ -44,7 +44,8 @@ static void ReadInMemoryStruct(const MachOObject &MOO,
|
||||
}
|
||||
|
||||
// Check whether we can return a direct pointer.
|
||||
struct_type *Ptr = (struct_type *) (Buffer.data() + Base);
|
||||
struct_type *Ptr = reinterpret_cast<struct_type *>(
|
||||
const_cast<char *>(Buffer.data() + Base));
|
||||
if (!MOO.isSwappedEndian()) {
|
||||
Res = Ptr;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user