Commit 04cbb956 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parent da1f1414
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment