fix(color): Explicit casting to prevent warnings (#9810)

Signed-off-by: Yang Gang <yanggang.uefi@gmail.com>
This commit is contained in:
Yang Gang
2026-03-06 17:19:13 +08:00
committed by GitHub
parent 64e7804574
commit 1b7dda6a94

View File

@@ -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));
}
/**