Fix signedness warning in glib/tests/scannerapi.c

glib/tests/scannerapi.c: In function ‘test_scanner_tokens’:
glib/tests/scannerapi.c:124:17: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘gint’ {aka ‘const int’}
  124 |   for (i = 1; i < tokbuflen; i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-10-15 13:34:33 +02:00
parent cc041eb742
commit a7fdca46e7

View File

@ -111,8 +111,8 @@ test_scanner_tokens (ScannerFixture *fix,
gchar buf[] = "(\t\n\r\\){}";
const gint buflen = strlen (buf);
gchar tokbuf[] = "(\\){}";
const gint tokbuflen = strlen (tokbuf);
guint i;
const gsize tokbuflen = strlen (tokbuf);
gsize i;
g_scanner_input_text (fix->scanner, buf, buflen);