Fix signedness warning in gio/gdesktopappinfo.c:get_list_of_mimetypes()

gio/gdesktopappinfo.c: In function ‘get_list_of_mimetypes’:
gio/gdesktopappinfo.c:4116:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
 4116 |       for (i = 0; i < array->len; i++)
      |                     ^
This commit is contained in:
Emmanuel Fleury 2020-11-17 11:03:25 +01:00 committed by Philip Withnall
parent 83af3f64f1
commit 46772fe4c3

View File

@ -4143,7 +4143,7 @@ get_list_of_mimetypes (const gchar *content_type,
if (include_fallback) if (include_fallback)
{ {
gint i; guint i;
/* Iterate the array as we grow it, until we have nothing more to add */ /* Iterate the array as we grow it, until we have nothing more to add */
for (i = 0; i < array->len; i++) for (i = 0; i < array->len; i++)