summaryrefslogtreecommitdiff
path: root/pixman/pixman-matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'pixman/pixman-matrix.c')
-rw-r--r--pixman/pixman-matrix.c2
1 files changed, 1 insertions, 1 deletions
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);