[glib: 1/7] Fix signedness warnings in gobject/tests/value.c:test_valuearray_basic()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/7] Fix signedness warnings in gobject/tests/value.c:test_valuearray_basic()
- Date: Wed, 16 Dec 2020 11:45:43 +0000 (UTC)
commit bbb9ef19ce58dc0642d29c6f1287d8c70ab30d5d
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 17:41:46 2020 +0100
Fix signedness warnings in gobject/tests/value.c:test_valuearray_basic()
gobject/tests/value.c: In function ‘test_valuearray_basic’:
gobject/tests/value.c:253:17: error: comparison of integer expressions of different signedness: ‘gint’
{aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
253 | for (i = 0; i < a->n_values - 1; i++)
| ^
gobject/tests/value.c:257:17: error: comparison of integer expressions of different signedness: ‘gint’
{aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
257 | for (i = 0; i < a->n_values; i++)
| ^
gobject/tests/value.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/tests/value.c b/gobject/tests/value.c
index b3ea223f9..2e7bdb06e 100644
--- a/gobject/tests/value.c
+++ b/gobject/tests/value.c
@@ -225,7 +225,7 @@ test_valuearray_basic (void)
GValueArray *a2;
GValue v = G_VALUE_INIT;
GValue *p;
- gint i;
+ guint i;
a = g_value_array_new (20);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]