From aece433b15667093765486e1767d74c056a52ae5 Mon Sep 17 00:00:00 2001
From: vbystricky <user@user-pc.(none)>
Date: Fri, 28 Mar 2014 12:49:12 +0400
Subject: [PATCH] Check ippStsNoErr as result of ipp function instead >=0

---
 modules/imgproc/src/smooth.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp
index 139dd9577e..2282290ffe 100644
--- a/modules/imgproc/src/smooth.cpp
+++ b/modules/imgproc/src/smooth.cpp
@@ -2199,7 +2199,7 @@ public:
               *ok = false;
               return;
           }
-          if( ippicviFilterBilateral_8u_C1R( src.ptr<uchar>(range.start) + radius * ((int)src.step[0] + 1), (int)src.step[0], dst.ptr<uchar>(range.start), (int)dst.step[0], roi, kernel, pSpec ) < 0)
+          if (ippStsNoErr != ippicviFilterBilateral_8u_C1R( src.ptr<uchar>(range.start) + radius * ((int)src.step[0] + 1), (int)src.step[0], dst.ptr<uchar>(range.start), (int)dst.step[0], roi, kernel, pSpec ))
               *ok = false;
       }
 private: