diff --git a/modules/ml/src/gbt.cpp b/modules/ml/src/gbt.cpp index aeaf6695af..9ed6b4c986 100644 --- a/modules/ml/src/gbt.cpp +++ b/modules/ml/src/gbt.cpp @@ -259,7 +259,7 @@ CvGBTrees::train( const CvMat* _train_data, int _tflag, for (int i=1; idata.fl[i]) - class_labels->data.i[k]) && (kdata.fl[i]) - class_labels->data.i[k])) k++; if (k == j) {