Fix signedness warning in gio/gfileinfo.c:g_file_info_find_value()

gio/gfileinfo.c: In function ‘g_file_info_find_value’:
gio/gfileinfo.c:543:9: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’}
  543 |   if (i < info->attributes->len &&
      |         ^
This commit is contained in:
Emmanuel Fleury
2020-11-16 20:58:35 +01:00
parent ece9a52d0b
commit a3dd0df5d8

View File

@@ -536,7 +536,7 @@ g_file_info_find_value (GFileInfo *info,
guint32 attr_id)
{
GFileAttribute *attrs;
int i;
guint i;
i = g_file_info_find_place (info, attr_id);
attrs = (GFileAttribute *)info->attributes->data;