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

examples: fix path_tracing.v compilation, using (*ptr) = expression

This commit is contained in:
Delyan Angelov
2020-04-23 12:19:04 +03:00
parent d5eafe79bd
commit fb97c2e01e
6 changed files with 12 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ pub mut:
unsafe {
mut e := &int(0)
e = a.data + y*a.maxx + x
*e = newval
(*e) = newval
}
}
[inline] pub fn (a &A2D) get(x,y int) int {