summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-10-31 16:37:24 -0400
committerAdam Jackson <ajax@redhat.com>2019-11-01 14:36:52 -0400
commitbcfb3490db782ce5d2d6bd185b68f67bc6dfad06 (patch)
tree78ea444370cd0a5631f94c7452532633ca639017
parentfef82109eb38525fee036f741c0ef25c027c84ce (diff)
downloadpixman-bcfb3490db782ce5d2d6bd185b68f67bc6dfad06.tar.gz
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
-rw-r--r--pixman/pixman-bits-image.c4
1 files 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
{