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

checker: add error for fn f() Struct { return &Struct{} } (#6019)

This commit is contained in:
Delyan Angelov
2020-07-29 22:40:43 +03:00
committed by GitHub
parent 81f8e910e6
commit 9c9533dad9
12 changed files with 44 additions and 18 deletions

View File

@ -72,7 +72,7 @@ fn calculate_state(seed_data []u32, mut state []u64) []u64 {
for j := 1; j < nn; j++ {
state[j] = u64(6364136223846793005) * (state[j - 1] ^ (state[j - 1] >> 62)) + u64(j)
}
return state
return *state
}
// seed() - Set the seed, needs only two u32s in little endian format as [lower, higher]