From: StevenPuttemans Date: Fri, 22 Nov 2013 08:57:47 +0000 (+0100) Subject: Fixed bug in report #3346 X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~759^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a8bd3165728c2994fd75d647c69139347a54d2a;p=platform%2Fupstream%2Fopencv.git Fixed bug in report #3346 --- diff --git a/modules/imgproc/src/precomp.hpp b/modules/imgproc/src/precomp.hpp index 20101b7..83b722f 100644 --- a/modules/imgproc/src/precomp.hpp +++ b/modules/imgproc/src/precomp.hpp @@ -64,7 +64,7 @@ /* helper tables */ extern const uchar icvSaturate8u_cv[]; -#define CV_FAST_CAST_8U(t) (assert(-256 <= (t) || (t) <= 512), icvSaturate8u_cv[(t)+256]) +#define CV_FAST_CAST_8U(t) (assert(-256 <= (t) && (t) <= 512), icvSaturate8u_cv[(t)+256]) #define CV_CALC_MIN_8U(a,b) (a) -= CV_FAST_CAST_8U((a) - (b)) #define CV_CALC_MAX_8U(a,b) (a) += CV_FAST_CAST_8U((b) - (a))