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

gio/gdesktopappinfo.c: In function ‘array_contains’:
gio/gdesktopappinfo.c:1193:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
 1193 |   for (i = 0; i < array->len; i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-11-17 10:57:21 +01:00
parent 5940d51167
commit ce2446ddfd

View File

@ -1221,7 +1221,7 @@ static gboolean
array_contains (GPtrArray *array, array_contains (GPtrArray *array,
const gchar *str) const gchar *str)
{ {
gint i; guint i;
for (i = 0; i < array->len; i++) for (i = 0; i < array->len; i++)
if (g_str_equal (array->pdata[i], str)) if (g_str_equal (array->pdata[i], str))