1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

drawing: workaround MSVC2010 32-bit compiler bug

This commit is contained in:
Alexander Alekhin
2017-02-02 21:01:28 +03:00
parent 2346ba7ea2
commit ebae963884
+6 -2
View File
@@ -1185,8 +1185,12 @@ FillConvexPoly( Mat& img, const Point2l* v, int npts, const void* color, int lin
edges--;
}
xs <<= XY_SHIFT - shift;
xe = v[idx].x << (XY_SHIFT - shift);
xe = v[idx].x;
if (XY_SHIFT - shift != 0)
{
xs <<= XY_SHIFT - shift;
xe <<= XY_SHIFT - shift;
}
/* no more edges */
if( y >= ty)