iSilence warnings

This commit is contained in:
LibretroAdmin 2025-02-09 22:26:36 +01:00
parent c4a9a3d3a2
commit d34cfcdfef
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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;