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