mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
backport fixes for static analyzer warnings
Commits: -09837928d9-10fb88d027Excluded changes with std::atomic (C++98 requirement)
This commit is contained in:
@@ -1026,7 +1026,7 @@ _Tp* Mat::ptr(int y)
|
||||
template<typename _Tp> inline
|
||||
const _Tp* Mat::ptr(int y) const
|
||||
{
|
||||
CV_DbgAssert( y == 0 || (data && dims >= 1 && data && (unsigned)y < (unsigned)size.p[0]) );
|
||||
CV_DbgAssert( y == 0 || (data && dims >= 1 && (unsigned)y < (unsigned)size.p[0]) );
|
||||
return (const _Tp*)(data + step.p[0] * y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user