mirror of
https://github.com/opencv/opencv.git
synced 2026-09-12 13:23:03 -05:00
Fixed several issues found by static analysis
This commit is contained in:
@@ -917,7 +917,7 @@ public:
|
||||
if (max_elem!=last)
|
||||
{
|
||||
dstData[x0] = *max_elem;
|
||||
if( compMaxIdx )
|
||||
if( compMaxIdx && dstMaskData )
|
||||
{
|
||||
dstMaskData[x0] = std::distance(first, max_elem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user