1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

fixed problem with copying huge matrices (and probably other operations on huge matrices) (#1176)

This commit is contained in:
Vadim Pisarevsky
2011-06-29 15:21:49 +00:00
parent da1f141422
commit 04cbb956bf
+1 -1
View File
@@ -148,7 +148,7 @@ static void updateContinuityFlag(Mat& m)
break;
}
int64 t = (int64)(m.step[0]/CV_ELEM_SIZE(m.flags))*m.size[0];
int64 t = (int64)m.step[0]*m.size[0];
if( j <= i && t == (int)t )
m.flags |= Mat::CONTINUOUS_FLAG;
else