[glib: 1/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_copy_into()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/7] Fix signedness warning in gio/gfileinfo.c:g_file_info_copy_into()
- Date: Thu, 17 Dec 2020 18:47:25 +0000 (UTC)
commit b82146c4b6249fcc226393764473a9e7e75af8f4
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 20:52:23 2020 +0100
Fix signedness warning in gio/gfileinfo.c:g_file_info_copy_into()
gio/gfileinfo.c: In function ‘g_file_info_copy_into’:
gio/gfileinfo.c:385:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘guint’ {aka ‘unsigned int’}
385 | for (i = 0; i < dest_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 67b261959..f29864709 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -376,7 +376,7 @@ g_file_info_copy_into (GFileInfo *src_info,
GFileInfo *dest_info)
{
GFileAttribute *source, *dest;
- int i;
+ guint i;
g_return_if_fail (G_IS_FILE_INFO (src_info));
g_return_if_fail (G_IS_FILE_INFO (dest_info));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]