fix(refr) silence compiler warning due to integer type mismatch (#2722)

This commit is contained in:
Jianting (Meco) Man
2021-10-25 12:47:25 -04:00
committed by GitHub
parent 95be2c7b99
commit 97bf74915d
12 changed files with 28 additions and 28 deletions

View File

@@ -18,7 +18,7 @@ void lv_example_flex_1(void)
lv_obj_align_to(cont_col, cont_row, LV_ALIGN_OUT_BOTTOM_MID, 0, 5);
lv_obj_set_flex_flow(cont_col, LV_FLEX_FLOW_COLUMN);
uint32_t i;
unsigned int i;
for(i = 0; i < 10; i++) {
lv_obj_t * obj;
lv_obj_t * label;
@@ -28,7 +28,7 @@ void lv_example_flex_1(void)
lv_obj_set_size(obj, 100, LV_PCT(100));
label = lv_label_create(obj);
lv_label_set_text_fmt(label, "Item: %d", i);
lv_label_set_text_fmt(label, "Item: %u", i);
lv_obj_center(label);
/*Add items to the column*/
@@ -36,7 +36,7 @@ void lv_example_flex_1(void)
lv_obj_set_size(obj, LV_PCT(100), LV_SIZE_CONTENT);
label = lv_label_create(obj);
lv_label_set_text_fmt(label, "Item: %d", i);
lv_label_set_text_fmt(label, "Item: %u", i);
lv_obj_center(label);
}
}