[glib: 6/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_list_attributes()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_list_attributes()
- Date: Thu, 17 Dec 2020 18:47:26 +0000 (UTC)
commit dd63c0bf323d335d7dfcbadf93e222e2cb513c5c
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 21:04:01 2020 +0100
Fix signedness warning in gio/gfileinfo.c:g_file_info_list_attributes()
gio/gfileinfo.c: In function ‘g_file_info_list_attributes’:
gio/gfileinfo.c:645:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘guint’ {aka ‘unsigned int’}
645 | for (i = 0; i < info->attributes->len; i++)
| ^
gio/gfileinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index bd5a12789..bbe393eed 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -636,7 +636,7 @@ g_file_info_list_attributes (GFileInfo *info,
GFileAttribute *attrs;
guint32 attribute;
guint32 ns_id = (name_space) ? lookup_namespace (name_space) : 0;
- int i;
+ guint i;
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]