mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix signedness warnings in gio/gdesktopappinfo.c:g_desktop_app_info_get_desktop_ids_for_content_type()
gio/gdesktopappinfo.c: In function ‘g_desktop_app_info_get_desktop_ids_for_content_type’: gio/gdesktopappinfo.c:4154:19: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 4154 | for (j = 0; j < desktop_file_dirs->len; j++) | ^ gio/gdesktopappinfo.c:4158:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare] 4158 | for (i = 0; i < hits->len; i++) | ^
This commit is contained in:
parent
46772fe4c3
commit
daa0e0b76b
@ -4174,7 +4174,7 @@ g_desktop_app_info_get_desktop_ids_for_content_type (const gchar *content_type,
|
||||
{
|
||||
GPtrArray *hits, *blocklist;
|
||||
gchar **types;
|
||||
gint i, j;
|
||||
guint i, j;
|
||||
|
||||
hits = g_ptr_array_new ();
|
||||
blocklist = g_ptr_array_new ();
|
||||
|
Loading…
Reference in New Issue
Block a user