mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
fixed "Conditional jump or move depends on uninitialised value(s)" in GBD
This commit is contained in:
parent
94cf5430d0
commit
887736bcd4
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user