mirror of
https://github.com/libretro/RetroArch
synced 2025-01-17 01:16:25 +00:00
CXX_BUILD fixes
This commit is contained in:
parent
611bcec28c
commit
750c134b86
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user