Fix signedness warnings in glib/tests/once.c

glib/tests/once.c: In function ‘test_once_init_multi_threaded’:
glib/tests/once.c:183:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
  183 |   for (i = 0; i < G_N_ELEMENTS (threads); i++)
      |                 ^
glib/tests/once.c:186:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
  186 |   for (i = 0; i < G_N_ELEMENTS (threads); i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-10-15 11:12:03 +02:00
parent d15260ee69
commit 700a9d4042

View File

@ -173,7 +173,7 @@ thread_func (gpointer data)
static void
test_once_init_multi_threaded (void)
{
gint i;
gsize i;
GThread *threads[THREADS];
g_test_summary ("Test g_once_init_{enter,leave}() usage from multiple threads");