mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 01:48:53 +02: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:
@@ -1798,7 +1798,7 @@ g_object_new_with_custom_constructor (GObjectClass *class,
|
|||||||
gint n_cparams;
|
gint n_cparams;
|
||||||
gint cvals_used;
|
gint cvals_used;
|
||||||
GSList *node;
|
GSList *node;
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
/* If we have ->constructed() then we have to do a lot more work.
|
/* 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
|
* 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;
|
GParamSpec *pspec;
|
||||||
GValue *value;
|
GValue *value;
|
||||||
gint j;
|
guint j;
|
||||||
|
|
||||||
pspec = node->data;
|
pspec = node->data;
|
||||||
value = NULL; /* to silence gcc... */
|
value = NULL; /* to silence gcc... */
|
||||||
|
Reference in New Issue
Block a user