image-loader: Fix undefined left shift in premultiply_data
authorAdam Jackson <ajax@redhat.com>
Wed, 16 Oct 2019 20:06:06 +0000 (16:06 -0400)
committerAdam Jackson <ajax@redhat.com>
Wed, 16 Oct 2019 20:06:06 +0000 (16:06 -0400)
commitad0fe6b6f9600600663bd1cd0f47ce5c6feefdf3
treead7708c321058b00da4ae8e406675a2760821ae8
parent3c3f3b1cc3c30c646795668662c3234656135cd2
image-loader: Fix undefined left shift in premultiply_data

../shared/image-loader.c:184:14: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'

Store each channel in a uint32_t instead of a byte so we compute the shift over
an unsigned type.
shared/image-loader.c