Fix signedness warnings in glib/tests/slice.c

glib/tests/slice.c: In function ‘test_allocate’:
glib/tests/slice.c:146:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
  146 |   for (i = 0; i < G_N_ELEMENTS(threads); i++)
      |                 ^
glib/tests/slice.c:149:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
  149 |   for (i = 0; i < G_N_ELEMENTS(threads); i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-11-14 13:17:11 +01:00
parent fcbd9d6d75
commit f4bfc50db3

View File

@ -137,7 +137,7 @@ test_allocate (void)
{ {
GThread *threads[30]; GThread *threads[30];
gint size; gint size;
gint i; gsize i;
for (i = 0; i < 30; i++) for (i = 0; i < 30; i++)
for (size = 1; size <= 4096; size++) for (size = 1; size <= 4096; size++)