print_buf_lines - cast to unsigned to avoid warnings

This commit is contained in:
LibretroAdmin 2025-01-17 21:52:26 +01:00
parent 8aa445dfe2
commit 48d903e811

View File

@ -13301,7 +13301,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
case DISPLAYLIST_CORE_CONTENT: case DISPLAYLIST_CORE_CONTENT:
menu_entries_clear(info->list); menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "", count = (unsigned)print_buf_lines(info->list, menu->core_buf, "",
menu->core_len, FILE_TYPE_DOWNLOAD_CORE_CONTENT, menu->core_len, FILE_TYPE_DOWNLOAD_CORE_CONTENT,
true); true);
@ -13334,7 +13334,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
strlcpy(menu->core_buf, con, menu->core_len); strlcpy(menu->core_buf, con, menu->core_len);
free(info_path_cpy); free(info_path_cpy);
if ((count = print_buf_lines( if ((count = (unsigned)print_buf_lines(
info->list, menu->core_buf, new_label, info->list, menu->core_buf, new_label,
menu->core_len, FILE_TYPE_DOWNLOAD_URL, menu->core_len, FILE_TYPE_DOWNLOAD_URL,
false)) == 0) false)) == 0)
@ -13364,7 +13364,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
network_buildbot_assets_url, network_buildbot_assets_url,
"cores", sizeof(new_label)); "cores", sizeof(new_label));
if ((count = print_buf_lines(info->list, menu->core_buf, new_label, if ((count = (unsigned)print_buf_lines(info->list, menu->core_buf, new_label,
menu->core_len, FILE_TYPE_DOWNLOAD_URL, true)) == 0) menu->core_len, FILE_TYPE_DOWNLOAD_URL, true)) == 0)
menu_entries_append(info->list, menu_entries_append(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ENTRIES_TO_DISPLAY), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ENTRIES_TO_DISPLAY),
@ -13381,7 +13381,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
case DISPLAYLIST_CORE_SYSTEM_FILES: case DISPLAYLIST_CORE_SYSTEM_FILES:
menu_entries_clear(info->list); menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "", count = (unsigned)print_buf_lines(info->list, menu->core_buf, "",
menu->core_len, FILE_TYPE_DOWNLOAD_CORE_SYSTEM_FILES, menu->core_len, FILE_TYPE_DOWNLOAD_CORE_SYSTEM_FILES,
true); true);
@ -13485,7 +13485,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
case DISPLAYLIST_THUMBNAILS_UPDATER: case DISPLAYLIST_THUMBNAILS_UPDATER:
menu_entries_clear(info->list); menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "", count = (unsigned)print_buf_lines(info->list, menu->core_buf, "",
menu->core_len, FILE_TYPE_DOWNLOAD_THUMBNAIL_CONTENT, menu->core_len, FILE_TYPE_DOWNLOAD_THUMBNAIL_CONTENT,
true); true);
@ -13523,7 +13523,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
case DISPLAYLIST_LAKKA: case DISPLAYLIST_LAKKA:
menu_entries_clear(info->list); menu_entries_clear(info->list);
#ifdef HAVE_NETWORKING #ifdef HAVE_NETWORKING
count = print_buf_lines(info->list, menu->core_buf, "", count = (unsigned)print_buf_lines(info->list, menu->core_buf, "",
menu->core_len, FILE_TYPE_DOWNLOAD_LAKKA, menu->core_len, FILE_TYPE_DOWNLOAD_LAKKA,
true); true);