fix return types

I bet those two return types shoud be unsigned
This commit is contained in:
José Luis Cruz 2020-08-11 11:56:25 +02:00 committed by GitHub
parent 7790913d2f
commit 7bd29c9c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2382,12 +2382,12 @@ ncpixel_r(uint32_t pixel){
return (pixel & 0x000000fful); return (pixel & 0x000000fful);
} }
static inline int static inline unsigned
ncpixel_g(uint32_t pixel){ ncpixel_g(uint32_t pixel){
return (pixel & 0x00ff0000ul) >> 16u; return (pixel & 0x00ff0000ul) >> 16u;
} }
static inline int static inline unsigned
ncpixel_b(uint32_t pixel){ ncpixel_b(uint32_t pixel){
return (pixel & 0x0000ff00ul) >> 8u; return (pixel & 0x0000ff00ul) >> 8u;
} }