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)
      |             ^~
This commit is contained in:
Emmanuel Fleury 2020-10-15 10:29:44 +02:00
parent b3244bee0c
commit 8fc0080b5e

View File

@ -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++)
{