From 1b7dda6a945d9496b5522bd302dca5fd50a0b809 Mon Sep 17 00:00:00 2001 From: Yang Gang Date: Fri, 6 Mar 2026 17:19:13 +0800 Subject: [PATCH] fix(color): Explicit casting to prevent warnings (#9810) Signed-off-by: Yang Gang --- src/misc/lv_color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/lv_color.h b/src/misc/lv_color.h index 22a8de5002..c135372b93 100644 --- a/src/misc/lv_color.h +++ b/src/misc/lv_color.h @@ -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)); } /**