From fcbd9d6d752012cd0209acb0d76d3a9fdb49600f Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Sat, 14 Nov 2020 13:14:25 +0100 Subject: [PATCH] Fix signedness warning in glib/tests/spawn-singlethread.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glib/tests/spawn-singlethread.c: In function ‘test_spawn_async_with_fds’: glib/tests/spawn-singlethread.c:204:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 204 | for (i = 0; i < G_N_ELEMENTS (tests); i++) | ^ --- glib/tests/spawn-singlethread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/spawn-singlethread.c b/glib/tests/spawn-singlethread.c index ab449eb95..c4417fe19 100644 --- a/glib/tests/spawn-singlethread.c +++ b/glib/tests/spawn-singlethread.c @@ -179,7 +179,7 @@ test_spawn_async_with_fds (void) int tnum = 1; GPtrArray *argv; char *arg; - int i; + gsize i; /* Each test has 3 variable parameters: stdin, stdout, stderr */ enum fd_type {