1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Fix C++ issue reported in #1113

Fix conversion from void * to structure without cast
This commit is contained in:
embeddedt 2019-06-23 12:48:58 -04:00 committed by GitHub
parent d79df213a1
commit 7f7034f50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ static inline void lv_style_anim_set_time(lv_anim_t * a, uint16_t duration, uint
*/
static inline void lv_style_anim_set_ready_cb(lv_anim_t * a, lv_anim_ready_cb_t ready_cb)
{
lv_style_anim_dsc_t * dsc = a->var;
lv_style_anim_dsc_t * dsc = (lv_style_anim_dsc_t *)a->var;
dsc->ready_cb = ready_cb;
}