ci: temporary workaround for cross assignment in a closure leading to cgen error
parent
b8e8768928
commit
c6a6eb9a3c
|
@ -10,7 +10,8 @@ fn sma(period int) fn (f64) f64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
sum += input - storage[i]
|
sum += input - storage[i]
|
||||||
storage[i], i = input, (i + 1) % period
|
storage[i] = input
|
||||||
|
i = (i + 1) % period
|
||||||
return sum / f64(storage.len)
|
return sum / f64(storage.len)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue