diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index 6e5c23288b..67841c5cb1 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -8154,9 +8154,9 @@ static enum menu_action ozone_parse_menu_entry_action( ? ozone_get_onscreen_category_selection(ozone) : ozone->categories_selection_ptr; - new_selection = random_range(ozone->system_tab_end + 1, (unsigned)(ozone->system_tab_end + horizontal_list_size)); + new_selection = random_range((unsigned)(ozone->system_tab_end + 1), (unsigned)(ozone->system_tab_end + horizontal_list_size)); while (new_selection == (int)tab_selection) - new_selection = random_range(ozone->system_tab_end + 1, (unsigned)(ozone->system_tab_end + horizontal_list_size)); + new_selection = random_range((unsigned)(ozone->system_tab_end + 1), (unsigned)(ozone->system_tab_end + horizontal_list_size)); if (new_selection != (int)tab_selection) ozone_sidebar_goto(ozone, new_selection); diff --git a/menu/menu_driver.c b/menu/menu_driver.c index 5e6782d5a8..a2a0d5cf69 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -8129,10 +8129,10 @@ size_t menu_playlist_random_selection(size_t selection, bool is_explore_list) selection_start = 2; } - new_selection = random_range(selection_start, (unsigned)(selection_total - 1)); + new_selection = random_range((unsigned)(selection_start), (unsigned)(selection_total - 1)); while (new_selection == selection && selection_start != selection_total - 1) - new_selection = random_range(selection_start, (unsigned)(selection_total - 1)); + new_selection = random_range((unsigned)(selection_start), (unsigned)(selection_total - 1)); return new_selection; } diff --git a/runahead.c b/runahead.c index 7d9ff3a12d..19901f15ca 100644 --- a/runahead.c +++ b/runahead.c @@ -1552,7 +1552,7 @@ static INLINE bool preempt_ptr_input_dirty(preempt_t *preempt, static INLINE void preempt_input_poll(preempt_t *preempt, runloop_state_t *runloop_st, unsigned max_users) { - size_t p; + unsigned p; int16_t joypad_state; retro_input_state_t state_cb = input_driver_state_wrapper;