summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-10-15 11:12:03 +0200
committerEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-11-13 10:12:16 +0100
commit700a9d4042661df1eb098911e9f8932bec39ca69 (patch)
tree6e3e57b7468b3e5141dc096d2869a7ea8cd9463d
parentd15260ee6989d3c6d6e403e7dca76fddef557132 (diff)
downloadglib-700a9d4042661df1eb098911e9f8932bec39ca69.tar.gz
Fix signedness warnings in glib/tests/once.c
glib/tests/once.c: In function ‘test_once_init_multi_threaded’: glib/tests/once.c:183:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 183 | for (i = 0; i < G_N_ELEMENTS (threads); i++) | ^ glib/tests/once.c:186:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 186 | for (i = 0; i < G_N_ELEMENTS (threads); i++) | ^
-rw-r--r--glib/tests/once.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/tests/once.c b/glib/tests/once.c
index c34156173..8fc8d5014 100644
--- a/glib/tests/once.c
+++ b/glib/tests/once.c
@@ -173,7 +173,7 @@ thread_func (gpointer data)
static void
test_once_init_multi_threaded (void)
{
- gint i;
+ gsize i;
GThread *threads[THREADS];
g_test_summary ("Test g_once_init_{enter,leave}() usage from multiple threads");