mirror of
https://github.com/vlang/v.git
synced 2025-09-17 00:12:26 +03:00
make v build-examples work: part 1
This commit is contained in:
parent
78f8a8aee6
commit
4e51867612
8 changed files with 20 additions and 20 deletions
|
@ -46,9 +46,9 @@ fn new_automaton(f [][]int) Automaton {
|
|||
maxx = f[y].len
|
||||
}
|
||||
}
|
||||
size := u32(maxx * maxy)
|
||||
field := &A2D{ maxx: maxx maxy: maxy data: &int( vcalloc( sizeof(int) * size ) ) }
|
||||
new_field := &A2D{ maxx: maxx maxy: maxy data: &int( vcalloc( sizeof(int) * size) ) }
|
||||
size := (maxx * maxy)
|
||||
field := &A2D{ maxx: maxx maxy: maxy data: &int( vcalloc( 4 * (size) ) ) }
|
||||
new_field := &A2D{ maxx: maxx maxy: maxy data: &int( vcalloc( 4 * (size)) ) }
|
||||
for y in 0..field.maxy {
|
||||
for x in 0..field.maxx {
|
||||
field.set( x, y, f[y][x] )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue