diff --git a/src/core/lv_obj_tree.c b/src/core/lv_obj_tree.c index 1b32c78a2e..79ce5d3f26 100644 --- a/src/core/lv_obj_tree.c +++ b/src/core/lv_obj_tree.c @@ -746,7 +746,7 @@ static void dump_tree_core(lv_obj_t * obj, int32_t depth) #endif /*id of `obj0` is an invalid id for builtin id*/ - LV_LOG_USER("%*sobj:%p, id:%s;", 2 * depth, "", (void *)obj, id); + LV_LOG_USER("%*sobj:%p, id:%s;", (int)(2 * depth), "", (void *)obj, id); #endif /*LV_USE_LOG*/ if(obj && obj->spec_attr && obj->spec_attr->child_cnt) {