object: use guint type for n_params argument of g_object_new_is_valid_property()

Two out of three callers pass the count argument from a variable
of type guint. And the third is currently an always positive gint.

We should use the correct integer type that matches the type as it
used otherwise.
This commit is contained in:
Thomas Haller 2019-12-12 11:57:25 +01:00
parent 56cbdb1a66
commit 355c99a077

View File

@ -2005,9 +2005,10 @@ g_object_new_is_valid_property (GType object_type,
GParamSpec *pspec,
const char *name,
GObjectConstructParam *params,
int n_params)
guint n_params)
{
gint i;
guint i;
if (G_UNLIKELY (pspec == NULL))
{
g_critical ("%s: object class '%s' has no property named '%s'",