mirror of
https://github.com/lvgl/lvgl.git
synced 2026-03-23 14:03:13 +08:00
fix(color): Explicit casting to prevent warnings (#9810)
Signed-off-by: Yang Gang <yanggang.uefi@gmail.com>
This commit is contained in:
@@ -352,7 +352,7 @@ static inline bool lv_color_is_in_range(lv_color_t color, lv_color_t l_color, lv
|
||||
*/
|
||||
static inline lv_color_t lv_color16_to_color(lv_color16_t c)
|
||||
{
|
||||
return lv_color_make(c.red << 3, c.green << 2, c.blue << 3);
|
||||
return lv_color_make((uint8_t)(c.red << 3), (uint8_t)(c.green << 2), (uint8_t)(c.blue << 3));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user