Make default index 0
This commit is contained in:
parent
a1bc592bca
commit
10e388df58
@ -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");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user