Make default index 0

This commit is contained in:
Frederik Beimgraben 2025-01-13 02:47:47 +01:00
parent a1bc592bca
commit 10e388df58

View File

@ -743,8 +743,8 @@ LocalExtrema *initLocalExtrema(int *piInPos, int iLen) {
} }
void getMinMaxPos(double *pdIn, int iLen, int *iMinPos, int *iMaxPos) { void getMinMaxPos(double *pdIn, int iLen, int *iMinPos, int *iMaxPos) {
*iMaxPos = -1; *iMaxPos = 0;
*iMinPos = -1; *iMinPos = 0;
if (iLen == 0) { if (iLen == 0) {
_warn("getMinMaxPos: iLen is 0"); _warn("getMinMaxPos: iLen is 0");