mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
6b0552bb89
commit
e28d9defb1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user