From 447908086430504bb55da499ad9714a053705d76 Mon Sep 17 00:00:00 2001 From: fallstool Date: Thu, 13 Sep 2018 16:41:59 +0800 Subject: [PATCH] Update lv_win.h arm cross compile error: invalid conversion from void* to lv_win_ext_t* --- lv_objx/lv_win.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lv_objx/lv_win.h b/lv_objx/lv_win.h index a1af7c605..1fe6b4315 100644 --- a/lv_objx/lv_win.h +++ b/lv_objx/lv_win.h @@ -217,7 +217,7 @@ void lv_win_focus(lv_obj_t * win, lv_obj_t * obj, uint16_t anim_time); */ static inline void lv_win_scroll_hor(lv_obj_t * win, lv_coord_t dist) { - lv_win_ext_t * ext = lv_obj_get_ext_attr(win); + lv_win_ext_t * ext = (lv_win_ext_t *)lv_obj_get_ext_attr(win); lv_page_scroll_hor(ext->page, dist); } /** @@ -227,7 +227,7 @@ static inline void lv_win_scroll_hor(lv_obj_t * win, lv_coord_t dist) */ static inline void lv_win_scroll_ver(lv_obj_t * win, lv_coord_t dist) { - lv_win_ext_t * ext = lv_obj_get_ext_attr(win); + lv_win_ext_t * ext = (lv_win_ext_t *)lv_obj_get_ext_attr(win); lv_page_scroll_ver(ext->page, dist); }