1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cli: fix compilation

This commit is contained in:
Alexander Medvednikov 2022-06-26 07:08:05 +03:00
parent e76f74fd73
commit ca30397e7a
3 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ mut:
struct WebhookServer { struct WebhookServer {
vweb.Context vweb.Context
mut: mut:
gen_vc &GenVC = 0 // initialized in init_server gen_vc &GenVC = unsafe { 0 } // initialized in init_server
} }
// storage for flag options // storage for flag options

View File

@ -7,7 +7,7 @@ import time
struct App { struct App {
mut: mut:
gg &gg.Context = 0 gg &gg.Context = unsafe { 0 }
touch TouchInfo touch TouchInfo
ui Ui ui Ui
theme &Theme = themes[0] theme &Theme = themes[0]
@ -18,7 +18,7 @@ mut:
state GameState = .play state GameState = .play
tile_format TileFormat = .normal tile_format TileFormat = .normal
moves int moves int
perf &Perf = 0 perf &Perf = unsafe { 0 }
is_ai_mode bool is_ai_mode bool
} }

View File

@ -27,7 +27,7 @@ pub mut:
disable_flags bool disable_flags bool
sort_flags bool sort_flags bool
sort_commands bool sort_commands bool
parent &Command = 0 parent &Command = unsafe { 0 }
commands []Command commands []Command
flags []Flag flags []Flag
required_args int required_args int