[glib: 5/7] Fix signedness warnings in gobject/gobject.c:g_object_new_with_custom_constructor()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/7] Fix signedness warnings in gobject/gobject.c:g_object_new_with_custom_constructor()
- Date: Tue, 24 Nov 2020 15:37:22 +0000 (UTC)
commit 7753a0492b00e72af9ae6fe3998d4c9e3dfbec48
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 16:43:56 2020 +0100
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++)
| ^
gobject/gobject.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index df67abdb6..36dd2e940 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -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... */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]