mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
56cbdb1a66
commit
355c99a077
@ -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'",
|
||||
|
Loading…
Reference in New Issue
Block a user