summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-11-01 14:47:15 -0400
committerAdam Jackson <ajax@nwnk.net>2019-11-13 20:00:20 +0000
commitbaed75faa988a39295c79e71932f26de68904eea (patch)
tree1fe9c92fdb1a48b1aa4a9981105a237df3ae5af5
parent85acb0a933bffbce6af03339546aff0a1eab5096 (diff)
downloadpixman-baed75faa988a39295c79e71932f26de68904eea.tar.gz
pixman-mmx: Fix undefined left-shifts
-rw-r--r--pixman/pixman-mmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c
index dec3974..df30581 100644
--- a/pixman/pixman-mmx.c
+++ b/pixman/pixman-mmx.c
@@ -3950,7 +3950,7 @@ mmx_fetch_a8 (pixman_iter_t *iter, const uint32_t *mask)
while (w && (((uintptr_t)dst) & 15))
{
- *dst++ = *(src++) << 24;
+ *dst++ = (uint32_t)*(src++) << 24;
w--;
}
@@ -3977,7 +3977,7 @@ mmx_fetch_a8 (pixman_iter_t *iter, const uint32_t *mask)
while (w)
{
- *dst++ = *(src++) << 24;
+ *dst++ = (uint32_t)*(src++) << 24;
w--;
}