Fix signedness warning in gobject/gobject.c:g_object_class_install_properties()

gobject/gobject.c: In function ‘g_object_class_install_properties’:
gobject/gobject.c:766:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
  766 |   for (i = 1; i < n_pspecs; i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-11-16 16:40:39 +01:00
parent e28d9defb1
commit d50d2098b5

View File

@ -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);