From d4ac328617d9f5c01dee723018370e23e4318adb Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 9 Jan 2015 13:10:14 -0600 Subject: [PATCH] [libpng17] Quiet a GCC compiler warning about sample_max in pngset.c --- pngset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngset.c b/pngset.c index 668a25c06..60f53beb5 100644 --- a/pngset.c +++ b/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) ||