[glib: 3/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_clear_status()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_clear_status()
- Date: Thu, 17 Dec 2020 18:47:26 +0000 (UTC)
commit ece9a52d0b7e9c3e67504851d4b09b04951c8e4e
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 20:55:32 2020 +0100
Fix signedness warning in gio/gfileinfo.c:g_file_info_clear_status()
gio/gfileinfo.c: In function ‘g_file_info_clear_status’:
gio/gfileinfo.c:499:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘guint’ {aka ‘unsigned int’}
499 | 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 31c654f06..47637aac1 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -491,7 +491,7 @@ void
g_file_info_clear_status (GFileInfo *info)
{
GFileAttribute *attrs;
- int i;
+ guint i;
g_return_if_fail (G_IS_FILE_INFO (info));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]