Merge pull request #5285 from ilya-lavrenov:ml5

This commit is contained in:
Alexander Alekhin 2015-09-02 11:39:07 +00:00
commit 73a8e65cbd

View File

@ -259,7 +259,7 @@ CvGBTrees::train( const CvMat* _train_data, int _tflag,
for (int i=1; i<n; ++i)
{
int k = 0;
while ((int(orig_response->data.fl[i]) - class_labels->data.i[k]) && (k<j))
while ((k<j) && (int(orig_response->data.fl[i]) - class_labels->data.i[k]))
k++;
if (k == j)
{