mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Fixed several problems found by PVS-Studio.
This fixes all problems from the article "Checking OpenCV with PVS-Studio" <http://www.viva64.com/en/b/0191/> that are not already fixed and are not in 3rdparty or the legacy module. The problems fixed are two instances of useless code and one instance of unspecified behavior (right-shifting a negative number).
This commit is contained in:
@@ -557,7 +557,6 @@ void CV_Resize_Test::resize_1d(const Mat& _src, Mat& _dst, int dy, const dim& _d
|
||||
xyD[r] = 0;
|
||||
for (int k = 0; k < ksize; ++k)
|
||||
xyD[r] += w[k] * xyS[k * cn + r];
|
||||
xyD[r] = xyD[r];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user