diff --git a/menu/menu_entry.c b/menu/menu_entry.c index a65165df95..24dee17b8e 100644 --- a/menu/menu_entry.c +++ b/menu/menu_entry.c @@ -143,7 +143,7 @@ unsigned menu_entry_get_type_new(uint32_t i) uint32_t menu_entry_get_bool_value(uint32_t i) { rarch_setting_t *setting = menu_entry_get_setting(i); - bool *ptr = setting_get_ptr(setting); + bool *ptr = (bool*)setting_get_ptr(setting); if (!ptr) return 0; return *ptr; diff --git a/menu/menu_input.c b/menu/menu_input.c index 6313612d16..942ed97ee0 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -353,7 +353,7 @@ void menu_input_st_hex_callback(void *userdata, const char *str) if (setting) { - unsigned *ptr = setting_get_ptr(setting); + unsigned *ptr = (unsigned*)setting_get_ptr(setting); if (str[0] == '#') str++; *ptr = strtoul(str, NULL, 16); diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 43cd6005f7..78ce68caaa 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -148,7 +148,7 @@ struct rarch_setting } boolean; unsigned bind_type; - unsigned browser_selection_type; + enum setting_type browser_selection_type; float step; const char *rounding_fraction; bool enforce_minrange;