[glib: 4/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_find_value()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_find_value()
- Date: Thu, 17 Dec 2020 18:47:26 +0000 (UTC)
commit a3dd0df5d884c04bfe436a35561def9204b79795
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 20:58:35 2020 +0100
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 &&
| ^
gio/gfileinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index 47637aac1..fd11e1249 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]