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

gobject/gobject.c: In function ‘g_object_new_internal’:
gobject/gobject.c:1962:25: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
 1962 |           for (j = 0; j < n_params; j++)
      |                         ^
gobject/gobject.c:1989:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
 1989 |       for (i = 0; i < n_params; i++)
      |                     ^
This commit is contained in:
Emmanuel Fleury 2020-11-16 16:50:52 +01:00
parent 7753a0492b
commit 236d6281b8

View File

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