Fix code triggering new -Wmicrosoft-cast warning in M67
This commit is contained in:
parent
5b25c2db5d
commit
9a296fc63e
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ bool RegisterNonABICompliantCodeRange(void* start, size_t size_in_bytes) {
|
|||
// mov imm64, rax
|
||||
record->thunk[0] = 0x48;
|
||||
record->thunk[1] = 0xb8;
|
||||
void* handler = &CrashForExceptionInNonABICompliantCodeRange;
|
||||
void* handler =
|
||||
reinterpret_cast<void*>(&CrashForExceptionInNonABICompliantCodeRange);
|
||||
memcpy(&record->thunk[2], &handler, 8);
|
||||
|
||||
// jmp rax
|
||||
|
|
Loading…
Reference in a new issue