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

master
Delyan Angelov 2022-05-28 13:21:59 +03:00
parent b8e8768928
commit c6a6eb9a3c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
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)
}
}