mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
Fix signedness warnings in glib/tests/slice.c
glib/tests/slice.c: In function ‘test_allocate’:
glib/tests/slice.c:146:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
146 | for (i = 0; i < G_N_ELEMENTS(threads); i++)
| ^
glib/tests/slice.c:149:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’
149 | for (i = 0; i < G_N_ELEMENTS(threads); i++)
| ^
This commit is contained in:
@@ -137,7 +137,7 @@ test_allocate (void)
|
|||||||
{
|
{
|
||||||
GThread *threads[30];
|
GThread *threads[30];
|
||||||
gint size;
|
gint size;
|
||||||
gint i;
|
gsize i;
|
||||||
|
|
||||||
for (i = 0; i < 30; i++)
|
for (i = 0; i < 30; i++)
|
||||||
for (size = 1; size <= 4096; size++)
|
for (size = 1; size <= 4096; size++)
|
||||||
|
|||||||
Reference in New Issue
Block a user