From: Cristy Date: Wed, 7 Aug 2019 21:57:19 +0000 (-0400) Subject: Eliminate compiler warning X-Git-Tag: 7.0.8-60~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c63a7092f055df83b02916679f2a1ffc5e7b4ec;p=imagemagick Eliminate compiler warning --- diff --git a/coders/tim2.c b/coders/tim2.c index 4a61654c3..84decc5e7 100644 --- a/coders/tim2.c +++ b/coders/tim2.c @@ -180,10 +180,10 @@ static inline Quantum GetChannelValue(unsigned int word,unsigned char channel, { case RGBA16: /* Documentation specifies padding with zeros for converting from 5 to 8 bits. */ - return ScaleCharToQuantum((word>>channel*5 & ~(~0x0<<5))<<3); + return ScaleCharToQuantum((word>>channel*5 & ~(~0x0U<<5))<<3); case RGB24: case RGBA32: - return ScaleCharToQuantum(word>>channel*8 & ~(~0x0<<8)); + return ScaleCharToQuantum(word>>channel*8 & ~(~0x0U<<8)); default: return -1; }