From 9c63a7092f055df83b02916679f2a1ffc5e7b4ec Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 7 Aug 2019 17:57:19 -0400 Subject: [PATCH] Eliminate compiler warning --- coders/tim2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.40.0