From 1f5b20c4aa19461a84799387c8e9107b6010ea24 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 31 Oct 2019 16:37:46 -0400 Subject: pixman-matrix: Fix left shift of a negative number ../pixman/pixman-matrix.c:276:35: runtime error: left shift of negative value -32768 --- pixman/pixman-matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixman/pixman-matrix.c b/pixman/pixman-matrix.c index 4032c13..81b6e61 100644 --- a/pixman/pixman-matrix.c +++ b/pixman/pixman-matrix.c @@ -273,7 +273,7 @@ pixman_transform_point_31_16 (const pixman_transform_t *t, { /* the divisor is small, we can actually keep all the bits */ int64_t hi, rhi, lo, rlo; - int64_t div = (divint << 16) + divfrac; + int64_t div = ((uint64_t)divint << 16) + divfrac; fixed_64_16_to_int128 (tmp[0][0], tmp[0][1], &hi, &lo, 32); rlo = rounded_sdiv_128_by_49 (hi, lo, div, &rhi); -- cgit v1.2.1