1
0
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:
cyy
2018-09-02 21:34:43 +08:00
committed by Alexander Alekhin
parent dce4e94f02
commit 09837928d9
16 changed files with 44 additions and 43 deletions
@@ -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);
}