mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Fix code triggering new -Wmicrosoft-cast warning in M67
This commit is contained in:
committed by
Aleksei Kuzmin
parent
5b25c2db5d
commit
9a296fc63e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user