summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-10-15 16:29:52 -0400
committerAdam Jackson <ajax@redhat.com>2019-10-15 16:31:45 -0400
commit7eb9c8c004d528fe2e94b75507aef229ccb79d21 (patch)
treefe359dca678fcc60ee22d427e22417113e297119
parent81c87543d198926a529e5d9b57c457b98e143c59 (diff)
downloadpixman-7eb9c8c004d528fe2e94b75507aef229ccb79d21.tar.gz
pixman-image: Fix undefined left shift
../pixman/pixman-image.c:963:46: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
-rw-r--r--pixman/pixman-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c
index 461164a..db29ff5 100644
--- a/pixman/pixman-image.c
+++ b/pixman/pixman-image.c
@@ -960,7 +960,7 @@ _pixman_image_get_solid (pixman_implementation_t *imp,
else if (image->bits.format == PIXMAN_x8r8g8b8)
result = image->bits.bits[0] | 0xff000000;
else if (image->bits.format == PIXMAN_a8)
- result = (*(uint8_t *)image->bits.bits) << 24;
+ result = (uint32_t)(*(uint8_t *)image->bits.bits) << 24;
else
goto otherwise;
}