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

@@ -4,15 +4,12 @@
module wyhash
pub fn rand_u64(seed &u64) u64 {
// QTODO
/*
mut seed0 := seed
unsafe{
mut seed1 := *seed0
seed1+=wyp0
*seed0 = seed1
seed1 += (wyp0)
(*seed0) = seed1
return wymum(seed1^wyp1, seed1)
}
*/
}
return 0
}

View File

@@ -28,9 +28,7 @@ fn test_wyhash() {
}
}
fn test_rand_u64() {
// QTODO
/*
fn test_rand_u64() {
seed := u64(111)
mut rand_nos := []u64
for _ in 0..40 {
@@ -39,7 +37,6 @@ fn test_rand_u64() {
assert rand_no != r
}
rand_nos << rand_no
}
*/
}
assert true
}