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

examples: fix unsafe 0

This commit is contained in:
Alexander Medvednikov
2022-06-26 07:12:15 +03:00
parent ca30397e7a
commit cb60392302
9 changed files with 12 additions and 12 deletions

View File

@ -18,7 +18,7 @@ struct Point {
struct App {
mut:
tui &tui.Context = 0
tui &tui.Context = unsafe { 0 }
points []Point
color tui.Color = colors[0]
color_idx int

View File

@ -19,11 +19,11 @@ const (
[heap]
struct App {
mut:
tui &ui.Context = 0
tui &ui.Context = unsafe { 0 }
mode Mode = Mode.menu
width int
height int
game &Game = 0
game &Game = unsafe { 0 }
dt f32
ticks i64
}