[glib: 3/6] Fix signedness warnings in glib/tests/convert.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/6] Fix signedness warnings in glib/tests/convert.c
- Date: Wed, 14 Oct 2020 14:10:07 +0000 (UTC)
commit d6eaa742e79a135868849000d1625d4d38e9fda4
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri Sep 11 18:15:11 2020 +0200
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))
| ^~
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]