mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 13:18:22 +01:00
GetBackgroundColorGIF: promote to uint32_t before << 24
quiets a signed integer overflow warning Change-Id: Ie4dd957e9fa7c6e639c2e887c448ecbba7d50a9e
This commit is contained in:
parent
def64e920f
commit
84739717d6
@ -405,7 +405,7 @@ static uint32_t GetBackgroundColorGIF(GifFileType* gif) {
|
||||
return 0xffffffff; // Invalid: assume white.
|
||||
} else {
|
||||
const GifColorType color = color_map->Colors[gif->SBackGroundColor];
|
||||
return (0xff << 24) |
|
||||
return (0xffu << 24) |
|
||||
(color.Red << 16) |
|
||||
(color.Green << 8) |
|
||||
(color.Blue << 0);
|
||||
|
Loading…
Reference in New Issue
Block a user