mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix several signedness warnings in tests/testglib.c
tests/testglib.c: In function ‘glist_test’: tests/testglib.c:90:30: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 90 | if (*((gint*) t->data) != (9 - i)) | ^~ tests/testglib.c:95:54: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 95 | if (g_list_position (list, g_list_nth (list, i)) != i) | ^~ tests/testglib.c:112:30: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 112 | if (*((gint*) t->data) != i) | ^~ tests/testglib.c:130:30: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 130 | if (*((gint*) t->data) != (9 - i)) | ^~ tests/testglib.c:150:30: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 150 | if (*((gint*) t->data) != (9 - i)) | ^~ tests/testglib.c: In function ‘gslist_test’: tests/testglib.c:170:31: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 170 | if (*((gint*) st->data) != (9 - i)) | ^~ tests/testglib.c:188:31: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 188 | if (*((gint*) st->data) != i) | ^~ tests/testglib.c:206:31: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 206 | if (*((gint*) st->data) != (9 - i)) | ^~ tests/testglib.c:226:31: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 226 | if (*((gint*) st->data) != (9 - i)) | ^~
This commit is contained in:
parent
249f46ac76
commit
65d93a16ab
@ -78,7 +78,7 @@ static void
|
||||
glist_test (void)
|
||||
{
|
||||
GList *list = NULL;
|
||||
guint i;
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < 10; i++)
|
||||
list = g_list_append (list, &test_nums[i]);
|
||||
@ -158,7 +158,7 @@ static void
|
||||
gslist_test (void)
|
||||
{
|
||||
GSList *slist = NULL;
|
||||
guint i;
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < 10; i++)
|
||||
slist = g_slist_append (slist, &test_nums[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user