Commit c41dc915 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6232 from piotr-semenov:semenovp_fixes

parents bcca213b 108ddc19
......@@ -2474,7 +2474,7 @@ ptrdiff_t operator - (const MatConstIterator& b, const MatConstIterator& a)
if( a.m != b.m )
return ((size_t)(-1) >> 1);
if( a.sliceEnd == b.sliceEnd )
return (b.ptr - a.ptr)/b.elemSize;
return (b.ptr - a.ptr)/static_cast<ptrdiff_t>(b.elemSize);
return b.lpos() - a.lpos();
}
......
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