From a08ac031fc97f0959b3df40bd7104cb9323b98f2 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 5 Jun 2013 16:48:18 -0500 Subject: [PATCH] [libpng17] Fixed ICC compiler warning in tools/png-fix-itxt.c --- contrib/tools/png-fix-itxt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/tools/png-fix-itxt.c b/contrib/tools/png-fix-itxt.c index 7cbd996ce..673706043 100644 --- a/contrib/tools/png-fix-itxt.c +++ b/contrib/tools/png-fix-itxt.c @@ -2,7 +2,7 @@ /* png-fix-itxt version 1.0.0 * * Copyright 2013 Glenn Randers-Pehrson - * Last changed in libpng 1.6.3 [(PENDING RELEASE)] + * Last changed in libpng 1.6.3 [%RDATE%] * * This code is released under the libpng license. * For conditions of distribution and use, see the disclaimer @@ -109,10 +109,10 @@ for (;;) } /* Update length bytes */ - buf[0] = (length << 24) & 0xff; - buf[1] = (length << 16) & 0xff; - buf[2] = (length << 8) & 0xff; - buf[3] = (length ) & 0xff; + buf[0] = (unsigned char)((length << 24) & 0xff); + buf[1] = (unsigned char)((length << 16) & 0xff); + buf[2] = (unsigned char)((length << 8) & 0xff); + buf[3] = (unsigned char)((length ) & 0xff); /* Write the fixed iTXt chunk (length, name, data, crc) */ for (i=0; i