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:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user