Fix data type for Windows compilation (#2029)

This commit is contained in:
eshifri
2022-06-12 00:04:34 +02:00
committed by GitHub
parent 48aa7d751c
commit 162880b291
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ enum slider_type {
static void slider_self_size(lv_event_t* e)
{
lv_point_t* s = (lv_point_t*)lv_event_get_param(e);
slider_type t = (slider_type)(long)lv_event_get_user_data(e);
slider_type t = (slider_type)(intptr_t)lv_event_get_user_data(e);
switch(t) {
case SLIDER_VERT:
s->y = VERTICAL_SLIDERS_HEIGHT;
+1 -1
View File
@@ -32,7 +32,7 @@ enum trim_type {
static void trim_self_size(lv_event_t* e)
{
lv_point_t* s = (lv_point_t*)lv_event_get_param(e);
trim_type t = (trim_type)(long)lv_event_get_user_data(e);
trim_type t = (trim_type)(intptr_t)lv_event_get_user_data(e);
switch(t) {
case TRIM_VERT:
s->y = VERTICAL_SLIDERS_HEIGHT;