[glib: 1/15] Fix signedness warning in glib/test/tree.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/15] Fix signedness warning in glib/test/tree.c
- Date: Sat, 14 Nov 2020 11:51:56 +0000 (UTC)
commit e80114311001e86ae5761d95cf234739642c5fea
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Oct 15 10:23:36 2020 +0200
Fix signedness warning in glib/test/tree.c
glib/tests/tree.c: In function ‘test_tree_traverse’:
glib/tests/tree.c:394:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka
‘int’} and ‘long unsigned int’
394 | for (i = 0; i < G_N_ELEMENTS (orders); i++)
| ^
glib/tests/tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/tree.c b/glib/tests/tree.c
index 5bf7bd368..8811d962d 100644
--- a/glib/tests/tree.c
+++ b/glib/tests/tree.c
@@ -333,7 +333,7 @@ static void
test_tree_traverse (void)
{
GTree *tree;
- gint i;
+ gsize i;
TraverseData orders[] = {
{ G_IN_ORDER, -1, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" },
{ G_IN_ORDER, 1, "0" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]