Fixed dummy warning.
authorLeonidBeynenson <leonid.beynenson@itseez.com>
Fri, 1 Feb 2013 12:16:43 +0000 (16:16 +0400)
committerLeonidBeynenson <leonid.beynenson@itseez.com>
Fri, 1 Feb 2013 12:16:43 +0000 (16:16 +0400)
apps/traincascade/boost.cpp
modules/ml/src/tree.cpp

index 0ba11a9..2d29f33 100644 (file)
@@ -489,8 +489,8 @@ void CvCascadeBoostTrainData::setData( const CvFeatureEvaluator* _featureEvaluat
     int* idst = 0;
     unsigned short* udst = 0;
 
-    uint64 effective_buf_size = -1;
-    int effective_buf_height = -1, effective_buf_width = -1;
+    uint64 effective_buf_size = 0;
+    int effective_buf_height = 0, effective_buf_width = 0;
 
 
     clear();
index 583cd33..1ba94fc 100644 (file)
@@ -159,8 +159,8 @@ void CvDTreeTrainData::set_data( const CvMat* _train_data, int _tflag,
     char err[100];
     const int *sidx = 0, *vidx = 0;
 
-    uint64 effective_buf_size = -1;
-    int effective_buf_height = -1, effective_buf_width = -1;
+    uint64 effective_buf_size = 0;
+    int effective_buf_height = 0, effective_buf_width = 0;
 
     if( _update_data && data_root )
     {