From: Pavel Vlasov Date: Mon, 21 Sep 2015 15:11:20 +0000 (+0300) Subject: Fix for cmp16s condition during IPP compare type convert; X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2248^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33e659786f8a13da46ea3892dae0300d7baff6e2;p=platform%2Fupstream%2Fopencv.git Fix for cmp16s condition during IPP compare type convert; --- diff --git a/modules/core/src/arithm.cpp b/modules/core/src/arithm.cpp index 1b87059..a9240f8 100644 --- a/modules/core/src/arithm.cpp +++ b/modules/core/src/arithm.cpp @@ -4692,7 +4692,7 @@ static void cmp16s(const short* src1, size_t step1, const short* src2, size_t st CV_IPP_CHECK() { IppCmpOp op = convert_cmp(*(int *)_cmpop); - if( op > 0 ) + if( op >= 0 ) { fixSteps(size, sizeof(dst[0]), step1, step2, step); if (0 <= ippiCompare_16s_C1R(src1, (int)step1, src2, (int)step2, dst, (int)step, ippiSize(size), op))