fix(cec2020): correct gnx's index to prevent panic
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
578df3d361
commit
9fdce17516
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user