Fix signedness warning in gobject/gtype.c:g_type_interface_add_prerequisite()

gobject/gtype.c: In function ‘g_type_interface_add_prerequisite’:
gobject/gtype.c:1607:21: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘int’
 1607 |       for (i = 0; i < prerequisite_node->n_supers + 1; i++)
      |                     ^
This commit is contained in:
Emmanuel Fleury 2020-11-16 16:36:50 +01:00
parent 6b0552bb89
commit e28d9defb1

View File

@ -1604,7 +1604,7 @@ g_type_interface_add_prerequisite (GType interface_type,
}
}
for (i = 0; i < prerequisite_node->n_supers + 1; i++)
for (i = 0; i < prerequisite_node->n_supers + 1u; i++)
type_iface_add_prerequisite_W (iface, lookup_type_node_I (prerequisite_node->supers[i]));
G_WRITE_UNLOCK (&type_rw_lock);
}