1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-27 22:33:03 +04:00

Fixed several issues found by static analysis tools

This commit is contained in:
Maksim Shabunin
2018-07-23 17:22:47 +03:00
parent 7d40fcead5
commit e0603bb45f
8 changed files with 28 additions and 21 deletions
+2 -2
View File
@@ -1725,8 +1725,8 @@ cvPtr1D( const CvArr* arr, int idx, int* _type )
else
{
int i, n = m->dims;
CV_DbgAssert( n <= CV_MAX_DIM_HEAP );
int _idx[CV_MAX_DIM_HEAP];
CV_DbgAssert( n <= CV_MAX_DIM );
int _idx[CV_MAX_DIM];
for( i = n - 1; i >= 0; i-- )
{