[glib: 11/15] Fix signedness warnings in glib/tests/rcbox.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 11/15] Fix signedness warnings in glib/tests/rcbox.c
- Date: Sat, 14 Nov 2020 11:51:57 +0000 (UTC)
commit 101a6043300a7187c8e83f0683e267e363d57ccf
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Oct 15 13:27:32 2020 +0200
Fix signedness warnings in glib/tests/rcbox.c
glib/tests/rcbox.c: In function ‘test_rcbox_alignment’:
glib/tests/rcbox.c:246:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘long unsigned int’
246 | for (i = 0; i < G_N_ELEMENTS (block_sizes); i++)
| ^
glib/tests/rcbox.c: In function ‘test_atomic_rcbox_alignment’:
glib/tests/rcbox.c:270:17: error: comparison of integer expressions of different signedness: ‘int’ and
‘long unsigned int’
270 | for (i = 0; i < G_N_ELEMENTS (block_sizes); i++)
| ^
glib/tests/rcbox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/rcbox.c b/glib/tests/rcbox.c
index 73126c7ea..fe10075da 100644
--- a/glib/tests/rcbox.c
+++ b/glib/tests/rcbox.c
@@ -241,7 +241,7 @@ test_rcbox_alignment (void)
sizeof (gint32) * 3,
};
- int i;
+ gsize i;
for (i = 0; i < G_N_ELEMENTS (block_sizes); i++)
{
@@ -265,7 +265,7 @@ test_atomic_rcbox_alignment (void)
sizeof (gint32) * 3,
};
- int i;
+ gsize i;
for (i = 0; i < G_N_ELEMENTS (block_sizes); i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]