Fix signedness warnings in glib/tests/convert.c

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))
      |                ^~
This commit is contained in:
Emmanuel Fleury
2020-09-11 18:15:11 +02:00
parent fd7f2e6c8a
commit d6eaa742e7

View File

@@ -138,7 +138,7 @@ test_byte_order (void)
static void static void
check_utf8_to_ucs4 (const char *utf8, check_utf8_to_ucs4 (const char *utf8,
glong utf8_len, gsize utf8_len,
const gunichar *ucs4, const gunichar *ucs4,
glong ucs4_len, glong ucs4_len,
glong error_pos) glong error_pos)
@@ -292,7 +292,7 @@ check_ucs4_to_utf8 (const gunichar *ucs4,
static void static void
check_utf8_to_utf16 (const char *utf8, check_utf8_to_utf16 (const char *utf8,
glong utf8_len, gsize utf8_len,
const gunichar2 *utf16, const gunichar2 *utf16,
glong utf16_len, glong utf16_len,
glong error_pos) glong error_pos)