From 1a7ac5e382109879ad10ff93b69f21e36aacd489 Mon Sep 17 00:00:00 2001 From: Ekopalypse <47723516+Ekopalypse@users.noreply.github.com> Date: Fri, 2 Oct 2020 03:17:33 +0000 Subject: [PATCH] builtin: VectoredExceptionHandler cast on x86 (#6525) --- vlib/builtin/builtin_windows.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/builtin_windows.c.v b/vlib/builtin/builtin_windows.c.v index fdabc29f9a..a9db49193c 100644 --- a/vlib/builtin/builtin_windows.c.v +++ b/vlib/builtin/builtin_windows.c.v @@ -224,7 +224,7 @@ fn unhandled_exception_handler(e &ExceptionPointers) int { } fn add_unhandled_exception_handler() { - add_vectored_exception_handler(unhandled_exception_handler) + add_vectored_exception_handler(VectoredExceptionHandler(voidptr(unhandled_exception_handler))) } fn C.IsDebuggerPresent() bool