From 52a566af97df73942b2fe2548d324fb2c35bb2f5 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 4 Sep 2017 18:23:06 -0500 Subject: [PATCH] [libpng16] Fix typecast in pngtrans.c --- pngtrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngtrans.c b/pngtrans.c index c66921748..191ec4dc9 100644 --- a/pngtrans.c +++ b/pngtrans.c @@ -609,7 +609,7 @@ png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start) return; /* The filler channel has gone already */ /* Fix the rowbytes value. */ - row_info->rowbytes = (unsigned int)(dp-row); + row_info->rowbytes = (png_size_t)(dp-row); } #endif