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

fix(spinbox) cast ext_attr for C++ (#2051)

This commit is contained in:
embeddedt 2021-01-31 12:51:23 -05:00 committed by GitHub
parent 27154b632c
commit 9fa5216263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) 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; return ext->step;
} }