[glib: 4/7] Fix signedness warning in gobject/gobject.c:g_object_class_install_properties()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/7] Fix signedness warning in gobject/gobject.c:g_object_class_install_properties()
- Date: Tue, 24 Nov 2020 15:37:22 +0000 (UTC)
commit d50d2098b5649d1deacbf8464b1dc7a581f7217e
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 16:40:39 2020 +0100
Fix signedness warning in gobject/gobject.c:g_object_class_install_properties()
gobject/gobject.c: In function ‘g_object_class_install_properties’:
gobject/gobject.c:766:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka
‘int’} and ‘guint’ {aka ‘unsigned int’}
766 | for (i = 1; i < n_pspecs; i++)
| ^
gobject/gobject.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index a3a32be9f..df67abdb6 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -749,7 +749,7 @@ g_object_class_install_properties (GObjectClass *oclass,
GParamSpec **pspecs)
{
GType oclass_type, parent_type;
- gint i;
+ guint i;
g_return_if_fail (G_IS_OBJECT_CLASS (oclass));
g_return_if_fail (n_pspecs > 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]