mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
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:
parent
0ddadf14cc
commit
dcd3af7023
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user