From 74a0b0dab2144405f77323fa9918f0666eeef3b7 Mon Sep 17 00:00:00 2001 From: Valentyn Korniienko Date: Wed, 13 May 2020 14:58:57 +0300 Subject: [PATCH] Fixed implicit casting from void* in lv_imgbuf.h --- src/lv_draw/lv_img_buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_draw/lv_img_buf.h b/src/lv_draw/lv_img_buf.h index dc71ec719..27cb6e3e1 100644 --- a/src/lv_draw/lv_img_buf.h +++ b/src/lv_draw/lv_img_buf.h @@ -276,7 +276,7 @@ bool _lv_img_buf_transform_anti_alias(lv_img_transform_dsc_t * dsc); */ static inline bool lv_img_buf_transform(lv_img_transform_dsc_t * dsc, lv_coord_t x, lv_coord_t y) { - const uint8_t * src_u8 = dsc->cfg.src; + const uint8_t * src_u8 = (const uint8_t*)dsc->cfg.src; /*Get the target point relative coordinates to the pivot*/ int32_t xt = x - dsc->cfg.pivot_x;