mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: temporary workaround for cross assignment in a closure leading to cgen error
This commit is contained in:
parent
b8e8768928
commit
c6a6eb9a3c
@ -10,7 +10,8 @@ fn sma(period int) fn (f64) f64 {
|
||||
}
|
||||
|
||||
sum += input - storage[i]
|
||||
storage[i], i = input, (i + 1) % period
|
||||
storage[i] = input
|
||||
i = (i + 1) % period
|
||||
return sum / f64(storage.len)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user