Commit 75f7bfdc authored by Christian Hergert's avatar Christian Hergert

egg-task-cache: use guint for iter

We use < for comparison and GPtrArray.len is uint, so it's perfectly safe
to use the same width integer here.

https://bugzilla.gnome.org/show_bug.cgi?id=779660
parent 9666e7b2
......@@ -493,9 +493,7 @@ egg_task_cache_cancelled_cb (GCancellable *cancellable,
if ((queued = g_hash_table_lookup (self->queued, data->key)))
{
gsize i;
for (i = 0; i < queued->len; i++)
for (guint i = 0; i < queued->len; i++)
{
GCancellable *queued_cancellable;
GTask *queued_task;
......@@ -506,7 +504,7 @@ egg_task_cache_cancelled_cb (GCancellable *cancellable,
if (queued_task == task && queued_cancellable == cancellable)
{
cancelled = g_task_return_error_if_cancelled (task);
g_ptr_array_remove_index_fast (queued, (guint) i);
g_ptr_array_remove_index_fast (queued, i);
EGG_COUNTER_DEC (queued);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment