From 88610994da31a0a67025c95fd5bfded00e412bea Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 5 Jun 2013 12:15:25 -0500 Subject: [PATCH] [libpng16] Fix compiler warning in png-fix-itxt.c --- contrib/tools/png-fix-itxt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/tools/png-fix-itxt.c b/contrib/tools/png-fix-itxt.c index 7cbd996ce..e55da55f8 100644 --- a/contrib/tools/png-fix-itxt.c +++ b/contrib/tools/png-fix-itxt.c @@ -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