diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-11-25 09:09:27 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-25 10:04:49 +0000 |
commit | ea18b7780e7d0d7fcd36b656a4fd974fb9d7137d (patch) | |
tree | fbd1cc84f0fd283ed5ce685be0d72deff6c78638 /src/sna/sna_accel.c | |
parent | 34057611c67b751c43d6bd70a7d5993708262cd2 (diff) |
Cast to use unsigned math
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index a68e5fb7..8abdf840 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2113,7 +2113,7 @@ skip_inplace_map: pixmap->drawable.bitsPerPixel == 8 || priv->clear_color == (1 << pixmap->drawable.depth) - 1) { memset(pixmap->devPrivate.ptr, priv->clear_color, - pixmap->devKind * pixmap->drawable.height); + (size_t)pixmap->devKind * pixmap->drawable.height); } else { pixman_fill(pixmap->devPrivate.ptr, pixmap->devKind/sizeof(uint32_t), |