mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
7753a0492b
commit
236d6281b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user