From bb4f0ed4a9f1c1775e75e293892eb24cad7cf3dd Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 25 Apr 2021 09:18:06 +0300 Subject: [PATCH] tools: fix vwatch.v compilation --- cmd/tools/vwatch.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vwatch.v b/cmd/tools/vwatch.v index 5f273279d8..3517f1b05e 100644 --- a/cmd/tools/vwatch.v +++ b/cmd/tools/vwatch.v @@ -242,7 +242,7 @@ const ccontext = Context{ } fn main() { - mut context := &ccontext + mut context := unsafe { &Context(voidptr(&ccontext)) } context.pid = os.getpid() context.vexe = os.getenv('VEXE') context.is_worker = os.args.contains('-vwatchworker') @@ -282,7 +282,7 @@ fn (mut context Context) manager_main() { fn (mut context Context) worker_main() { context.rerun_channel = chan RerunCommand{cap: 10} os.signal(C.SIGINT, fn () { - mut context := &ccontext + mut context := unsafe { &Context(voidptr(&ccontext)) } context.is_exiting = true context.kill_pgroup() })