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

checker: disallow voidptr cast to struct (#18845)

This commit is contained in:
Swastik Baranwal
2023-07-12 13:37:34 +05:30
committed by GitHub
parent a43064af07
commit 1c7df29bed
7 changed files with 21 additions and 8 deletions

View File

@ -19,7 +19,7 @@ fn event(e &tui.Event, x voidptr) {
}
fn frame(x voidptr) {
mut app := &App(x)
mut app := unsafe { &App(x) }
app.tui.clear()
app.tui.set_bg_color(r: 63, g: 81, b: 181)