From d2675b89c0c54cb7284323bc1dcf828f7cdf5894 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 23 Jul 2020 23:18:45 +0200 Subject: [PATCH] builtin: fix a mutable var on windows --- vlib/builtin/builtin_windows.c.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/builtin_windows.c.v b/vlib/builtin/builtin_windows.c.v index 0059603d9e..f2b4e5717b 100644 --- a/vlib/builtin/builtin_windows.c.v +++ b/vlib/builtin/builtin_windows.c.v @@ -164,7 +164,7 @@ pub: // status_ constants code u32 flags u32 - + record &ExceptionRecord address voidptr param_count u32 @@ -191,7 +191,7 @@ fn add_vectored_exception_handler(handler VectoredExceptionHandler) { [windows_stdcall] fn unhandled_exception_handler(e &ExceptionPointers) u32 { match e.exception_record.code { - // These are 'used' by the backtrace printer + // These are 'used' by the backtrace printer // so we dont want to catch them... 0x4001000A, 0x40010006 { return 0 @@ -215,7 +215,7 @@ fn C.__debugbreak() fn break_if_debugger_attached() { $if tinyc { unsafe { - ptr := &voidptr(0) + mut ptr := &voidptr(0) *ptr = 0 } } $else {