mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 09:39:03 -04:00
fix return types
I bet those two return types shoud be unsigned
This commit is contained in:
parent
7790913d2f
commit
7bd29c9c17
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user