[glib: 9/15] Fix signedness warning in glib/tests/protocol.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 9/15] Fix signedness warning in glib/tests/protocol.c
- Date: Sat, 14 Nov 2020 11:51:57 +0000 (UTC)
commit 946472132430267f4fa835732a298d5ce59ebc9d
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Oct 15 11:45:24 2020 +0200
Fix signedness warning in glib/tests/protocol.c
glib/tests/protocol.c: In function ‘test_error’:
glib/tests/protocol.c:252:17: error: comparison of integer expressions of different signedness: ‘gint’
{aka ‘int’} and ‘long unsigned int’
252 | for (i = 0; i < G_N_ELEMENTS (tests); i++)
| ^
glib/tests/protocol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/protocol.c b/glib/tests/protocol.c
index f1e969af3..27ebd99be 100644
--- a/glib/tests/protocol.c
+++ b/glib/tests/protocol.c
@@ -246,7 +246,7 @@ test_error (void)
"/glib/testing/protocol/critical",
"/glib/testing/protocol/error"
};
- gint i;
+ gsize i;
int messages = 0;
for (i = 0; i < G_N_ELEMENTS (tests); i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]