Fix signedness warning in tests/dirname-test.c

tests/dirname-test.c: In function ‘main’:
tests/dirname-test.c:105:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
  105 |   for (i = 0; i < n_dirname_checks; i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-11-20 21:58:23 +01:00
parent 0ddadf14cc
commit dcd3af7023

View File

@ -53,7 +53,7 @@ int
main (int argc,
char *argv[])
{
gint i;
gsize i;
struct {
gchar *filename;
gchar *dirname;
@ -100,9 +100,8 @@ main (int argc,
{ "a:\\/", "a:\\" },
#endif
};
guint n_dirname_checks = sizeof (dirname_checks) / sizeof (dirname_checks[0]);
for (i = 0; i < n_dirname_checks; i++)
for (i = 0; i < G_N_ELEMENTS (dirname_checks); i++)
{
gchar *dirname;