mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
More issues found by static analysis
This commit is contained in:
@@ -1259,7 +1259,7 @@ public:
|
||||
prev_dEdw_sign[i] = Mat::zeros(weights[i].size(), CV_8S);
|
||||
dEdw[i] = Mat::zeros(weights[i].size(), CV_64F);
|
||||
}
|
||||
|
||||
CV_Assert(total > 0);
|
||||
int dcount0 = max_buf_size/(2*total);
|
||||
dcount0 = std::max( dcount0, 1 );
|
||||
dcount0 = std::min( dcount0, count );
|
||||
|
||||
Reference in New Issue
Block a user