aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/miext/damage
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-16 06:42:50 +0000
committermarha <marha@users.sourceforge.net>2011-02-16 06:42:50 +0000
commita56d0886481e3a8d30c7f2a5e53ac40bf1473cea (patch)
tree2181da73f9e114fa7b84a1f4d24da7ae5d4bf6c0 /xorg-server/miext/damage
parentd5627ab9673bc0d37bec62874c0b41dee39d85f4 (diff)
downloadvcxsrv-a56d0886481e3a8d30c7f2a5e53ac40bf1473cea.tar.gz
vcxsrv-a56d0886481e3a8d30c7f2a5e53ac40bf1473cea.tar.bz2
vcxsrv-a56d0886481e3a8d30c7f2a5e53ac40bf1473cea.zip
Type cast width to short to avoid type cast exception in debug version when width is negative.
Diffstat (limited to 'xorg-server/miext/damage')
-rw-r--r--xorg-server/miext/damage/damage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg-server/miext/damage/damage.c b/xorg-server/miext/damage/damage.c
index d82ea0f6e..7d58d134b 100644
--- a/xorg-server/miext/damage/damage.c
+++ b/xorg-server/miext/damage/damage.c
@@ -1331,9 +1331,9 @@ damagePolyFillRect(DrawablePtr pDrawable,
int nRectsTmp = nRects;
box.x1 = pRectsTmp->x;
- box.x2 = box.x1 + pRectsTmp->width;
+ box.x2 = box.x1 + (short)pRectsTmp->width;
box.y1 = pRectsTmp->y;
- box.y2 = box.y1 + pRectsTmp->height;
+ box.y2 = box.y1 + (short)pRectsTmp->height;
while(--nRectsTmp)
{