ci: temporary workaround for cross assignment in a closure leading to cgen error

Delyan Angelov 2022-05-28 13:21:59 +03:00 committed by Chewing_Bever
parent e9da92c61d
commit f02f2e4708
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}
}