mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge pull request #12357 from DEEPIR:master
* fix some static analyzer warnings * fix some static analyzer warnings * fix race condition of workthread control
This commit is contained in:
@@ -919,7 +919,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