From 1f811d903e990ccc6c9d80718afbdfb6c379efe0 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 8 Oct 2016 09:21:54 +0200
Subject: Don't increment the result from GUINT_TO_POINTER
Increment the argument instead.
---
src/sdtui.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/sdtui.c')
diff --git a/src/sdtui.c b/src/sdtui.c
index 60aff41..bf6283e 100644
--- a/src/sdtui.c
+++ b/src/sdtui.c
@@ -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);
--
cgit v1.2.3-70-g09d2