[glib: 1/8] Fix signedness warnings in gobject/tests/properties.c:properties_get_property()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/8] Fix signedness warnings in gobject/tests/properties.c:properties_get_property()
- Date: Thu, 17 Dec 2020 08:53:11 +0000 (UTC)
commit 176b2047542a19405e21b8e72979cc89765dce8b
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 17:49:24 2020 +0100
Fix signedness warnings in gobject/tests/properties.c:properties_get_property()
gobject/tests/properties.c: In function ‘properties_get_property’:
gobject/tests/properties.c:562:17: error: comparison of integer expressions of different signedness:
‘int’ and ‘long unsigned int’
562 | for (i = 0; i < G_N_ELEMENTS (test_props); i++)
| ^
gobject/tests/properties.c:583:17: error: comparison of integer expressions of different signedness:
‘int’ and ‘long unsigned int’
583 | for (i = 0; i < G_N_ELEMENTS (test_props); i++)
| ^
gobject/tests/properties.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/tests/properties.c b/gobject/tests/properties.c
index 23d507c0b..297713d5a 100644
--- a/gobject/tests/properties.c
+++ b/gobject/tests/properties.c
@@ -554,7 +554,7 @@ properties_get_property (void)
{ "bar", G_TYPE_INVALID, G_VALUE_INIT },
{ "bar", G_TYPE_STRING, G_VALUE_INIT },
};
- int i;
+ gsize i;
g_test_summary ("g_object_get_property() accepts uninitialized, "
"initialized, and transformable values");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]