From 7bd29c9c1744f02896322ba3d6f4d111552d8ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Cruz?= Date: Tue, 11 Aug 2020 11:56:25 +0200 Subject: [PATCH] fix return types I bet those two return types shoud be unsigned --- include/notcurses/notcurses.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index e706aee3f..285837065 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -2382,12 +2382,12 @@ ncpixel_r(uint32_t pixel){ return (pixel & 0x000000fful); } -static inline int +static inline unsigned ncpixel_g(uint32_t pixel){ return (pixel & 0x00ff0000ul) >> 16u; } -static inline int +static inline unsigned ncpixel_b(uint32_t pixel){ return (pixel & 0x0000ff00ul) >> 8u; }