From: kocheganovvm Date: Tue, 6 Aug 2013 04:08:13 +0000 (+0400) Subject: Fix unsequenced assignment (Bug #3191). X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3815^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9b9a6fc038fc243e2debcc1dabd0d0745ff39d6;p=platform%2Fupstream%2Fopencv.git Fix unsequenced assignment (Bug #3191). --- diff --git a/modules/legacy/src/dpstereo.cpp b/modules/legacy/src/dpstereo.cpp index a55e1ca..dd7e642 100644 --- a/modules/legacy/src/dpstereo.cpp +++ b/modules/legacy/src/dpstereo.cpp @@ -76,7 +76,7 @@ typedef struct _CvRightImData uchar min_val, max_val; } _CvRightImData; -#define CV_IMAX3(a,b,c) ((temp3 = (a) >= (b) ? (a) : (b)),(temp3 >= (c) ? temp3 : (c))) +#define CV_IMAX3(a,b,c) ((temp2 = (a) >= (b) ? (a) : (b)),(temp2 >= (c) ? temp2 : (c))) #define CV_IMIN3(a,b,c) ((temp3 = (a) <= (b) ? (a) : (b)),(temp3 <= (c) ? temp3 : (c))) static void icvFindStereoCorrespondenceByBirchfieldDP( uchar* src1, uchar* src2, @@ -87,7 +87,7 @@ static void icvFindStereoCorrespondenceByBirchfieldDP( uchar* src1, uchar* src2, float _param3, float _param4, float _param5 ) { - int x, y, i, j, temp3; + int x, y, i, j, temp2, temp3; int d, s; int dispH = maxDisparity + 3; uchar *dispdata;