mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36: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,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
gint i;
|
gsize i;
|
||||||
struct {
|
struct {
|
||||||
gchar *filename;
|
gchar *filename;
|
||||||
gchar *dirname;
|
gchar *dirname;
|
||||||
@ -100,9 +100,8 @@ main (int argc,
|
|||||||
{ "a:\\/", "a:\\" },
|
{ "a:\\/", "a:\\" },
|
||||||
#endif
|
#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;
|
gchar *dirname;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user