mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02:00
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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user