ci: temporary workaround for cross assignment in a closure leading to cgen error
parent
e9da92c61d
commit
f02f2e4708
|
@ -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