(Menu) Cleanup warnings in CXX_BUILD mode

This commit is contained in:
twinaphex 2015-06-26 13:47:36 +02:00
parent 46c99bd225
commit c74631e2c7
2 changed files with 3 additions and 3 deletions

View File

@ -317,7 +317,7 @@ static void glui_render_menu_list(glui_handle_t *glui,
char type_str_buf[PATH_MAX_LENGTH];
int y = disp->header_height - menu->scroll_y + (glui->line_height * i);
if (y > height || ((y + (int)glui->line_height) < 0))
if (y > (int)height || ((y + (int)glui->line_height) < 0))
continue;
entry_path[0] = '\0';
@ -645,7 +645,7 @@ static float glui_get_scroll(void)
glui = (glui_handle_t*)menu->userdata;
half = (height / glui->line_height) / 2;
if (nav->selection_ptr < half)
if (nav->selection_ptr < (unsigned)half)
return 0;
return ((nav->selection_ptr + 2 - half) * glui->line_height);
}

View File

@ -451,7 +451,7 @@ static void rgui_render(void)
menu_entries_set_start(0);;
bottom = menu_entries_get_end() - RGUI_TERM_HEIGHT;
if (menu_entries_get_start() > bottom)
if (menu_entries_get_start() > (unsigned)bottom)
menu_entries_set_start(bottom);
end = ((menu_entries_get_start() + RGUI_TERM_HEIGHT) <= (menu_entries_get_end())) ?