From caa3f296dfdc2b4639560e3f90d3ae4fa88b97c0 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Sun, 10 Mar 2013 21:40:27 -0500 Subject: [PATCH] [libpng16] Eliminated another warning from the Intel C compiler. --- ANNOUNCE | 2 +- CHANGES | 2 +- pngrutil.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 73963e193..71380fb84 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -107,7 +107,7 @@ Version 1.6.1beta08 [March 7, 2013] Use copy_if_different in the CREATE_SYMLINK macro. Version 1.6.1beta09 [March 11, 2013] - Eliminated a warning from the Intel C compiler. The warning is + Eliminated two warnings from the Intel C compiler. The warnings are technically valid, although a reasonable treatment of division would show it to be incorrect. diff --git a/CHANGES b/CHANGES index 59f4738b8..d92113cec 100644 --- a/CHANGES +++ b/CHANGES @@ -4463,7 +4463,7 @@ Version 1.6.1beta08 [March 7, 2013] Use copy_if_different in the CREATE_SYMLINK macro. Version 1.6.1beta09 [March 11, 2013] - Eliminated a warning from the Intel C compiler. The warning is + Eliminated two warnings from the Intel C compiler. The warnings are technically valid, although a reasonable treatment of division would show it to be incorrect. diff --git a/pngrutil.c b/pngrutil.c index d29be223d..6c9bf7f22 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -3397,7 +3397,7 @@ png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display) png_uint_16p dp16 = png_aligncast(png_uint_16p, dp); png_const_uint_16p sp16 = png_aligncastconst( png_const_uint_16p, sp); - unsigned int skip = (bytes_to_jump-bytes_to_copy) / + size_t skip = (bytes_to_jump-bytes_to_copy) / (sizeof (png_uint_16)); do