From bcfb3490db782ce5d2d6bd185b68f67bc6dfad06 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 31 Oct 2019 16:37:24 -0400 Subject: pixman-bits-image: Fix left shift of a negative number ../pixman/pixman-bits-image.c:678:33: runtime error: left shift of negative value -32768 --- pixman/pixman-bits-image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c index ea74046..4cfabe3 100644 --- a/pixman/pixman-bits-image.c +++ b/pixman/pixman-bits-image.c @@ -674,8 +674,8 @@ __bits_image_fetch_general (pixman_iter_t *iter, { if (w != 0) { - x0 = ((pixman_fixed_48_16_t)x << 16) / w; - y0 = ((pixman_fixed_48_16_t)y << 16) / w; + x0 = ((uint64_t)x << 16) / w; + y0 = ((uint64_t)y << 16) / w; } else { -- cgit v1.2.1