Skip to content

Commit

Permalink
Fix unsequenced assignment (Bug opencv#3191).
Browse files Browse the repository at this point in the history
  • Loading branch information
kocheganovvm authored and kocheganovvm committed Aug 6, 2013
1 parent 4ed9b1c commit e9b9a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/legacy/src/dpstereo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit e9b9a6f

Please sign in to comment.