Don't increment the result from GUINT_TO_POINTER

Increment the argument instead.
This commit is contained in:
Přemysl Eric Janouch 2016-10-08 09:21:54 +02:00
parent a7068157f2
commit 1f811d903e
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -568,7 +568,7 @@ app_load_dictionaries_parallel (Application *self, GError **e)
ctx.self = self;
ctx.error_queue = g_async_queue_new_full ((GDestroyNotify) g_error_free);
for (guint i = 0; i < self->dictionaries->len; i++)
g_thread_pool_push (pool, GUINT_TO_POINTER (i) + 1, NULL);
g_thread_pool_push (pool, GUINT_TO_POINTER (i + 1), NULL);
g_thread_pool_free (pool, FALSE, TRUE);