diff options
-rw-r--r-- | sub/img_convert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sub/img_convert.c b/sub/img_convert.c index a29db4a6f2..2094e98086 100644 --- a/sub/img_convert.c +++ b/sub/img_convert.c @@ -46,10 +46,10 @@ static void rgba_to_premultiplied_rgba(uint32_t *colors, size_t count) { for (int n = 0; n < count; n++) { uint32_t c = colors[n]; - int b = c & 0xFF; - int g = (c >> 8) & 0xFF; - int r = (c >> 16) & 0xFF; - int a = (c >> 24) & 0xFF; + unsigned b = c & 0xFF; + unsigned g = (c >> 8) & 0xFF; + unsigned r = (c >> 16) & 0xFF; + unsigned a = (c >> 24) & 0xFF; b = b * a / 255; g = g * a / 255; r = r * a / 255; |