diff --git a/modules/core/src/matrix.cpp b/modules/core/src/matrix.cpp index a602d7e490..fb0f0462ed 100644 --- a/modules/core/src/matrix.cpp +++ b/modules/core/src/matrix.cpp @@ -5597,7 +5597,7 @@ void minMaxLoc( const SparseMat& src, double* _minval, double* _maxval, int* _mi double minval = DBL_MAX, maxval = -DBL_MAX; for( i = 0; i < N; i++, ++it ) { - double v = it.value(); + double v = it.value(); if( v < minval ) { minval = v;