[glib: 7/9] Fix several signedness warnings in gio/gio-tool-tree.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 7/9] Fix several signedness warnings in gio/gio-tool-tree.c
- Date: Wed, 10 Feb 2021 20:01:09 +0000 (UTC)
commit 7c7aec9b310f5fa16ef486dc6eed4679a99d7e4b
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 22:59:00 2020 +0100
Fix several signedness warnings in gio/gio-tool-tree.c
gio/gio-tool-tree.c: In function ‘do_tree’:
gio/gio-tool-tree.c:124:22: error: comparison of integer expressions of different signedness: ‘unsigned
int’ and ‘int’
124 | for (n = 0; n < level; n++)
| ^
gio/gio-tool-tree.c:197:21: error: comparison of integer expressions of different signedness: ‘unsigned
int’ and ‘int’
197 | for (n = 0; n < level; n++)
| ^
gio/gio-tool-tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gio-tool-tree.c b/gio/gio-tool-tree.c
index e63752edb..2327c4549 100644
--- a/gio/gio-tool-tree.c
+++ b/gio/gio-tool-tree.c
@@ -52,7 +52,7 @@ sort_info_by_name (GFileInfo *a, GFileInfo *b)
}
static void
-do_tree (GFile *f, int level, guint64 pattern)
+do_tree (GFile *f, unsigned int level, guint64 pattern)
{
GFileEnumerator *enumerator;
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]