diff --git a/gobject/gobject.c b/gobject/gobject.c index a3a32be9fdd09c26f7300e9200e51d6c4e503b63..056d5c5899bc9dab4acc3d9b6181b11693475f1f 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -749,7 +749,7 @@ g_object_class_install_properties (GObjectClass *oclass, GParamSpec **pspecs) { GType oclass_type, parent_type; - gint i; + guint i; g_return_if_fail (G_IS_OBJECT_CLASS (oclass)); g_return_if_fail (n_pspecs > 1); @@ -1798,7 +1798,7 @@ g_object_new_with_custom_constructor (GObjectClass *class, gint n_cparams; gint cvals_used; GSList *node; - gint i; + guint i; /* If we have ->constructed() then we have to do a lot more work. * It's possible that this is a singleton and it's also possible @@ -1828,7 +1828,7 @@ g_object_new_with_custom_constructor (GObjectClass *class, { GParamSpec *pspec; GValue *value; - gint j; + guint j; pspec = node->data; value = NULL; /* to silence gcc... */ @@ -1954,7 +1954,7 @@ g_object_new_internal (GObjectClass *class, { const GValue *value; GParamSpec *pspec; - gint j; + guint j; pspec = node->data; value = NULL; /* to silence gcc... */ @@ -1980,7 +1980,7 @@ g_object_new_internal (GObjectClass *class, if (nqueue) { - gint i; + guint i; /* Set remaining properties. The construct properties will * already have been taken, so set only the non-construct diff --git a/gobject/gtype.c b/gobject/gtype.c index 909faf138b04bd9525f8279219467e264ef0dfa4..1308632bf9e57461eeabfae060c0a2b9c41c5cfa 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -575,7 +575,7 @@ lookup_iface_entry_I (IFaceEntries *entries, guint8 *offsets; guint offset_index; IFaceEntry *check; - int index; + gsize index; IFaceEntry *entry; if (entries == NULL) @@ -1365,7 +1365,7 @@ type_node_add_iface_entry_W (TypeNode *node, IFaceEntry *entry; TypeNode *iface_node; guint i, j; - int num_entries; + guint num_entries; g_assert (node->is_instantiatable); @@ -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); }