mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
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:
parent
cc041eb742
commit
a7fdca46e7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user