From baed75faa988a39295c79e71932f26de68904eea Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 1 Nov 2019 14:47:15 -0400 Subject: pixman-mmx: Fix undefined left-shifts --- pixman/pixman-mmx.c | 4 ++-- 1 file 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--; } -- cgit v1.2.3