fix(cec2020): correct gnx's index to prevent panic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-02-09 03:16:09 +01:00
parent 578df3d361
commit 9fdce17516
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -153,7 +153,7 @@ func getGnx(p []float64, fnx float64) []float64 {
gnxsum += gnx[i] gnxsum += gnx[i]
} }
gnx[len(p)] = fnx - gnxsum gnx[len(p)-1] = fnx - gnxsum
return gnx return gnx
} }