From 9a296fc63ea6a2e6a58c9dd5bf376a20dd227b70 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 31 Jul 2018 14:39:31 -0700 Subject: [PATCH] Fix code triggering new -Wmicrosoft-cast warning in M67 --- atom/common/crash_reporter/crash_reporter_win.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/common/crash_reporter/crash_reporter_win.cc b/atom/common/crash_reporter/crash_reporter_win.cc index c574da71c9de..318e4ab5968a 100644 --- a/atom/common/crash_reporter/crash_reporter_win.cc +++ b/atom/common/crash_reporter/crash_reporter_win.cc @@ -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(&CrashForExceptionInNonABICompliantCodeRange); memcpy(&record->thunk[2], &handler, 8); // jmp rax