mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Fix signedness warning in tests/mainloop-test.c
tests/mainloop-test.c: In function ‘cleanup_crawlers’: tests/mainloop-test.c:358:15: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} 358 | for (i=0; i < crawler_array->len; i++) | ^
This commit is contained in:
@@ -352,10 +352,10 @@ create_crawler (void)
|
|||||||
static void
|
static void
|
||||||
cleanup_crawlers (GMainContext *context)
|
cleanup_crawlers (GMainContext *context)
|
||||||
{
|
{
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
G_LOCK (crawler_array_lock);
|
G_LOCK (crawler_array_lock);
|
||||||
for (i=0; i < crawler_array->len; i++)
|
for (i = 0; i < crawler_array->len; i++)
|
||||||
{
|
{
|
||||||
if (g_source_get_context (crawler_array->pdata[i]) == context)
|
if (g_source_get_context (crawler_array->pdata[i]) == context)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user