parser: allow deref assign without parens pt2 update vlib

pull/4587/head
joe-conigliaro 2020-04-25 18:09:52 +10:00
parent 9fff8733a0
commit f92cf69e60
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
2 changed files with 3 additions and 3 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 {

View File

@ -7,8 +7,8 @@ pub fn rand_u64(seed &u64) u64 {
mut seed0 := seed
unsafe{
mut seed1 := *seed0
seed1 += (wyp0)
(*seed0) = seed1
seed1 += wyp0
*seed0 = seed1
return wymum(seed1^wyp1, seed1)
}
return 0