Fix signedness warnings in gobject/gobject.c:g_object_new_with_custom_constructor()

gobject/gobject.c: In function ‘g_object_new_with_custom_constructor’:
gobject/gobject.c:1836:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
 1836 |       for (j = 0; j < n_params; j++)
      |                     ^
gobject/gobject.c:1914:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
 1914 |   for (i = 0; i < n_params; i++)
      |                 ^
This commit is contained in:
Emmanuel Fleury 2020-11-16 16:43:56 +01:00
parent d50d2098b5
commit 7753a0492b

View File

@ -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... */