From d6eaa742e79a135868849000d1625d4d38e9fda4 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Fri, 11 Sep 2020 18:15:11 +0200 Subject: [PATCH] Fix signedness warnings in glib/tests/convert.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glib/tests/convert.c:168:16: error: comparison of integer expressions of different signedness: ‘glong’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} 168 | if (utf8_len == strlen (utf8)) | ^~ glib/tests/convert.c:309:16: error: comparison of integer expressions of different signedness: ‘glong’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} 309 | if (utf8_len == strlen (utf8)) | ^~ --- glib/tests/convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/tests/convert.c b/glib/tests/convert.c index c43b3db6e..de6c8a73a 100644 --- a/glib/tests/convert.c +++ b/glib/tests/convert.c @@ -138,7 +138,7 @@ test_byte_order (void) static void check_utf8_to_ucs4 (const char *utf8, - glong utf8_len, + gsize utf8_len, const gunichar *ucs4, glong ucs4_len, glong error_pos) @@ -292,7 +292,7 @@ check_ucs4_to_utf8 (const gunichar *ucs4, static void check_utf8_to_utf16 (const char *utf8, - glong utf8_len, + gsize utf8_len, const gunichar2 *utf16, glong utf16_len, glong error_pos)