From ca30397e7a6907b1cd1b04dc7ed4018ad97744b0 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 26 Jun 2022 07:08:05 +0300 Subject: [PATCH] cli: fix compilation --- cmd/tools/gen_vc.v | 2 +- examples/2048/2048.v | 4 ++-- vlib/cli/command.v | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/tools/gen_vc.v b/cmd/tools/gen_vc.v index 86057aa69..3430d218f 100644 --- a/cmd/tools/gen_vc.v +++ b/cmd/tools/gen_vc.v @@ -91,7 +91,7 @@ mut: struct WebhookServer { vweb.Context mut: - gen_vc &GenVC = 0 // initialized in init_server + gen_vc &GenVC = unsafe { 0 } // initialized in init_server } // storage for flag options diff --git a/examples/2048/2048.v b/examples/2048/2048.v index bf8bf6d88..e71994e17 100644 --- a/examples/2048/2048.v +++ b/examples/2048/2048.v @@ -7,7 +7,7 @@ import time struct App { mut: - gg &gg.Context = 0 + gg &gg.Context = unsafe { 0 } touch TouchInfo ui Ui theme &Theme = themes[0] @@ -18,7 +18,7 @@ mut: state GameState = .play tile_format TileFormat = .normal moves int - perf &Perf = 0 + perf &Perf = unsafe { 0 } is_ai_mode bool } diff --git a/vlib/cli/command.v b/vlib/cli/command.v index 30b8eda96..217d0f6ca 100644 --- a/vlib/cli/command.v +++ b/vlib/cli/command.v @@ -27,7 +27,7 @@ pub mut: disable_flags bool sort_flags bool sort_commands bool - parent &Command = 0 + parent &Command = unsafe { 0 } commands []Command flags []Flag required_args int -- 2.30.2