summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 13:57:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 16:25:35 +0900
commit48a92ee0672281e2390673027e2ad606f403486c (patch)
tree51fd039adeaab39d882318b365f321329d22e725
parent39752e55ec6b90a3c945f08dbde637d778a05500 (diff)
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.
-rw-r--r--src/modules/conf_theme/e_int_config_fonts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/conf_theme/e_int_config_fonts.c b/src/modules/conf_theme/e_int_config_fonts.c
index ed7ba040b..8e097c48b 100644
--- a/src/modules/conf_theme/e_int_config_fonts.c
+++ b/src/modules/conf_theme/e_int_config_fonts.c
@@ -50,7 +50,7 @@ struct _CFText_Class
50 const char *font; 50 const char *font;
51 const char *style; 51 const char *style;
52 Evas_Font_Size size; 52 Evas_Font_Size size;
53 unsigned char enabled; 53 int enabled;
54}; 54};
55 55
56const E_Text_Class_Pair text_class_predefined_names[] = { 56const E_Text_Class_Pair text_class_predefined_names[] = {
@@ -815,7 +815,7 @@ _adv_class_cb_change(void *data, Evas_Object *obj EINA_UNUSED)
815 } 815 }
816 tc = e_widget_ilist_selected_data_get(cfdata->gui.class_list); 816 tc = e_widget_ilist_selected_data_get(cfdata->gui.class_list);
817 if (!tc) return; 817 if (!tc) return;
818 e_widget_check_valptr_set(cfdata->gui.enabled, (int*)&tc->enabled); 818 e_widget_check_valptr_set(cfdata->gui.enabled, &tc->enabled);
819 819
820 cfdata->cur_class = tc; 820 cfdata->cur_class = tc;
821 821