mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Quiet a GCC compiler warning about sample_max in pngset.c
This commit is contained in:
parent
56e6741b25
commit
d4ac328617
2
pngset.c
2
pngset.c
@ -989,7 +989,7 @@ png_set_tRNS(png_structrp png_ptr, png_inforp info_ptr,
|
||||
|
||||
if (trans_color != NULL && info_ptr->bit_depth < 16)
|
||||
{
|
||||
png_uint_16 sample_max = (1 << info_ptr->bit_depth) - 1;
|
||||
unsigned int sample_max = (1U << info_ptr->bit_depth) - 1U;
|
||||
|
||||
if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY &&
|
||||
trans_color->gray <= sample_max) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user