e theme conf config - fix casting char fileds to int ptrs

we're casting ptrs to char fields to int * which is actually wrong as
we break alignment guarantees. fix.
devs/bu5hm4n/luncher_verbose
Carsten Haitzler 6 years ago
parent 39752e55ec
commit 48a92ee067
  1. 4
      src/modules/conf_theme/e_int_config_fonts.c

@ -50,7 +50,7 @@ struct _CFText_Class
const char *font;
const char *style;
Evas_Font_Size size;
unsigned char enabled;
int enabled;
};
const E_Text_Class_Pair text_class_predefined_names[] = {
@ -815,7 +815,7 @@ _adv_class_cb_change(void *data, Evas_Object *obj EINA_UNUSED)
}
tc = e_widget_ilist_selected_data_get(cfdata->gui.class_list);
if (!tc) return;
e_widget_check_valptr_set(cfdata->gui.enabled, (int*)&tc->enabled);
e_widget_check_valptr_set(cfdata->gui.enabled, &tc->enabled);
cfdata->cur_class = tc;

Loading…
Cancel
Save