mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: allow EnumName(number)
casts only inside unsafe{}
blocks (#15932)
This commit is contained in:
parent
7993f0bf39
commit
b584e1df98
32 changed files with 129 additions and 97 deletions
|
@ -768,7 +768,7 @@ fn (mut app App) next_theme() {
|
|||
|
||||
[inline]
|
||||
fn (mut app App) next_tile_format() {
|
||||
app.tile_format = TileFormat(int(app.tile_format) + 1)
|
||||
app.tile_format = unsafe { TileFormat(int(app.tile_format) + 1) }
|
||||
if app.tile_format == .end_ {
|
||||
app.tile_format = .normal
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue