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_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:
parent
d50d2098b5
commit
7753a0492b
@ -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... */
|
||||
|
Loading…
Reference in New Issue
Block a user