Fix signedness warning in glib/tests/hash.c

glib/tests/hash.c: In function ‘test_hash_misc’:
glib/tests/hash.c:616:43: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
  616 |   if (values_len != keys_len &&  keys_len != g_hash_table_size (hash_table))
      |                                           ^~
This commit is contained in:
Emmanuel Fleury 2020-10-15 10:26:07 +02:00
parent e801143110
commit b3244bee0c

View File

@ -591,7 +591,7 @@ test_hash_misc (void)
gint value = 120;
gint *pvalue;
GList *keys, *values;
gint keys_len, values_len;
gsize keys_len, values_len;
GHashTableIter iter;
gpointer ikey, ivalue;
int result_array[10000];