1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +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:
Roman Donchenko
2014-05-20 13:54:00 +04:00
parent 976da2f3d3
commit 7ea1bf3cf0
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1009,7 +1009,7 @@ cvFindNextContour( CvContourScanner scanner )
if( mode == CV_RETR_FLOODFILL )
{
prev = ((int*)img)[x - 1];
new_mask = INT_MIN >> 1;
new_mask = INT_MIN / 2;
}
for( ; y < height; y++, img += step )