summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-10-15 16:20:17 -0400
committerAdam Jackson <ajax@redhat.com>2019-10-15 16:31:40 -0400
commita09bcc062ff4a66e905d8d22889ddfb48e3a8cd9 (patch)
tree7cc6f4b478a6f5957c73fe50d7d2d10d945d65f0
parentf6040f56da837e5550d2dd7d49a5814c8a54c1e7 (diff)
pixman: Fix undefined left shift in pixel_contract_from_float
../pixman/pixman-utils.c:216:14: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
-rw-r--r--pixman/pixman-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-utils.c b/pixman/pixman-utils.c
index 4a3a835..2c2dddd 100644
--- a/pixman/pixman-utils.c
+++ b/pixman/pixman-utils.c
@@ -206,7 +206,7 @@ pixman_contract_from_float (uint32_t *dst,
for (i = 0; i < width; ++i)
{
- uint8_t a, r, g, b;
+ uint32_t a, r, g, b;
a = float_to_unorm (src[i].a, 8);
r = float_to_unorm (src[i].r, 8);