Skip to content

Commit

Permalink
Merge pull request opencv#11971 from csukuangfj:patch_1
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jul 15, 2018
2 parents 23fc96e + 2b6aa50 commit 10676f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static const char* getTestOpMath(unsigned testOp)
const char* depthToString_(int depth)
{
static const char* depthNames[] = { "CV_8U", "CV_8S", "CV_16U", "CV_16S", "CV_32S", "CV_32F", "CV_64F", "CV_USRTYPE1" };
return depth <= CV_USRTYPE1 ? depthNames[depth] : NULL;
return (depth <= CV_USRTYPE1 && depth >= 0) ? depthNames[depth] : NULL;
}

const cv::String typeToString_(int type)
Expand Down

0 comments on commit 10676f8

Please sign in to comment.