summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-10-15 10:29:44 +0200
committerEmmanuel Fleury <emmanuel.fleury@gmail.com>2020-11-13 10:12:16 +0100
commit8fc0080b5ea01c72ae64bd7ffaf69cc0e33fe9d4 (patch)
tree73478e4837d77aa69b32ea26b4a9927a73041793
parentb3244bee0c5a49e7fd8cded288824e6e68bf843b (diff)
downloadglib-8fc0080b5ea01c72ae64bd7ffaf69cc0e33fe9d4.tar.gz
Fix signedness warnings in glib/tests/logging.c
glib/tests/logging.c: In function ‘compare_fields’: glib/tests/logging.c:403:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’} 403 | for (i = 0; i < n1; i++) | ^ glib/tests/logging.c:405:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’} 405 | for (j = 0; j < n2; j++) | ^ glib/tests/logging.c:410:13: error: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’} 410 | if (j == n2) | ^~
-rw-r--r--glib/tests/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/tests/logging.c b/glib/tests/logging.c
index f16503ad1..096fe4467 100644
--- a/glib/tests/logging.c
+++ b/glib/tests/logging.c
@@ -398,7 +398,7 @@ compare_field (const GLogField *f1, const GLogField *f2)
static gboolean
compare_fields (const GLogField *f1, gsize n1, const GLogField *f2, gsize n2)
{
- int i, j;
+ gsize i, j;
for (i = 0; i < n1; i++)
{