[glib: 6/8] Fix signedness warning in gio/tests/contenttype.c
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/8] Fix signedness warning in gio/tests/contenttype.c
- Date: Mon, 5 Apr 2021 10:42:34 +0000 (UTC)
commit 88253f171ce3e65ed939f79f47e102a45e358b3b
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 23:43:09 2020 +0100
Fix signedness warning in gio/tests/contenttype.c
gio/tests/contenttype.c: In function ‘test_tree’:
gio/tests/contenttype.c:337:17: error: comparison of integer expressions of different signedness: ‘gint’
{aka ‘int’} and ‘long unsigned int’
337 | for (i = 0; i < G_N_ELEMENTS (tests); i++)
| ^
gio/tests/contenttype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 71e8b0df6..f2faaf68d 100644
--- a/gio/tests/contenttype.c
+++ b/gio/tests/contenttype.c
@@ -363,7 +363,7 @@ test_tree (void)
const gchar *path;
GFile *file;
gchar **types;
- gint i;
+ gsize i;
#ifdef __APPLE__
g_test_skip ("The OSX backend does not implement g_content_type_guess_for_tree()");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]