Skip to content

Commit ebae963

Browse files
committed
drawing: workaround MSVC2010 32-bit compiler bug
1 parent 2346ba7 commit ebae963

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/core/src/drawing.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,8 +1185,12 @@ FillConvexPoly( Mat& img, const Point2l* v, int npts, const void* color, int lin
11851185
edges--;
11861186
}
11871187

1188-
xs <<= XY_SHIFT - shift;
1189-
xe = v[idx].x << (XY_SHIFT - shift);
1188+
xe = v[idx].x;
1189+
if (XY_SHIFT - shift != 0)
1190+
{
1191+
xs <<= XY_SHIFT - shift;
1192+
xe <<= XY_SHIFT - shift;
1193+
}
11901194

11911195
/* no more edges */
11921196
if( y >= ty)

0 commit comments

Comments
 (0)