Fixed Mat::isContinuous for big matrix (thanks to Boris Mansencal) #2103

This commit is contained in:
Andrey Kamaev 2012-06-27 14:19:35 +00:00
parent 15e50420bc
commit f09ae32796

View File

@ -151,7 +151,7 @@ static void updateContinuityFlag(Mat& m)
}
int64 t = (int64)m.step[0]*m.size[0];
if( j <= i && t == (int)t )
if( j <= i && t == (size_t)t )
m.flags |= Mat::CONTINUOUS_FLAG;
else
m.flags &= ~Mat::CONTINUOUS_FLAG;