From eafc764bb2bac85cf7b8a2b64f6daeb60d0d43c6 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 23:46:41 +0100 Subject: [PATCH] Fix several signedness warnings in gio/tests/converter-stream.c:main() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/tests/converter-stream.c: In function ‘main’: gio/tests/converter-stream.c:1220:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 1220 | for (i = 0; i < G_N_ELEMENTS (compressor_tests); i++) | ^ gio/tests/converter-stream.c:1223:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 1223 | for (i = 0; i < G_N_ELEMENTS (truncation_tests); i++) | ^ gio/tests/converter-stream.c:1226:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 1226 | for (i = 0; i < G_N_ELEMENTS (charset_tests); i++) | ^ --- gio/tests/converter-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/converter-stream.c b/gio/tests/converter-stream.c index 8bec95c76..45fb6a673 100644 --- a/gio/tests/converter-stream.c +++ b/gio/tests/converter-stream.c @@ -1207,7 +1207,7 @@ main (int argc, { "/converter-input-stream/charset/fallbacks", "UTF-8", "Some characters just don't fit into latin1: πא", "ISO-8859-1", "Some characters just don't fit into latin1: \\CF\\80\\D7\\90", 4 }, }; - gint i; + gsize i; g_test_init (&argc, &argv, NULL);