From c339e29d465ca2b105f93d95a8726e270581c47a Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 20 Nov 2020 22:00:00 +0100 Subject: [PATCH] Fix signedness warning in tests/mainloop-test.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tests/mainloop-test.c: In function ‘cleanup_crawlers’: tests/mainloop-test.c:358:15: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 358 | for (i=0; i < crawler_array->len; i++) | ^ --- tests/mainloop-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mainloop-test.c b/tests/mainloop-test.c index 5a3e6c989..be6024a10 100644 --- a/tests/mainloop-test.c +++ b/tests/mainloop-test.c @@ -352,10 +352,10 @@ create_crawler (void) static void cleanup_crawlers (GMainContext *context) { - gint i; + guint i; G_LOCK (crawler_array_lock); - for (i=0; i < crawler_array->len; i++) + for (i = 0; i < crawler_array->len; i++) { if (g_source_get_context (crawler_array->pdata[i]) == context) {