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 {
vweb.Context
mut:
gen_vc &GenVC = 0 // initialized in init_server
gen_vc &GenVC = unsafe { 0 } // initialized in init_server
}
// storage for flag options

View File

@ -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
}

View File

@ -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