From 9fa5216263a40111d60a4e087439f1297140d6a8 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Sun, 31 Jan 2021 12:51:23 -0500 Subject: [PATCH] fix(spinbox) cast ext_attr for C++ (#2051) --- src/lv_widgets/lv_spinbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_widgets/lv_spinbox.h b/src/lv_widgets/lv_spinbox.h index f6747888b..138457645 100644 --- a/src/lv_widgets/lv_spinbox.h +++ b/src/lv_widgets/lv_spinbox.h @@ -142,7 +142,7 @@ int32_t lv_spinbox_get_value(lv_obj_t * spinbox); */ static inline int32_t lv_spinbox_get_step(lv_obj_t * spinbox) { - lv_spinbox_ext_t * ext = lv_obj_get_ext_attr(spinbox); + lv_spinbox_ext_t * ext = (lv_spinbox_ext_t *)lv_obj_get_ext_attr(spinbox); return ext->step; }