mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: allow deref assign without parens pt2 update vlib
This commit is contained in:
parent
7177e71444
commit
900d96c638
@ -12,7 +12,7 @@ pub mut:
|
|||||||
unsafe {
|
unsafe {
|
||||||
mut e := &int(0)
|
mut e := &int(0)
|
||||||
e = a.data + y*a.maxx + x
|
e = a.data + y*a.maxx + x
|
||||||
(*e) = newval
|
*e = newval
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[inline] pub fn (a &A2D) get(x,y int) int {
|
[inline] pub fn (a &A2D) get(x,y int) int {
|
||||||
|
@ -7,8 +7,8 @@ pub fn rand_u64(seed &u64) u64 {
|
|||||||
mut seed0 := seed
|
mut seed0 := seed
|
||||||
unsafe{
|
unsafe{
|
||||||
mut seed1 := *seed0
|
mut seed1 := *seed0
|
||||||
seed1 += (wyp0)
|
seed1 += wyp0
|
||||||
(*seed0) = seed1
|
*seed0 = seed1
|
||||||
return wymum(seed1^wyp1, seed1)
|
return wymum(seed1^wyp1, seed1)
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user