diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-08 09:21:54 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-08 09:21:54 +0200 |
commit | 1f811d903e990ccc6c9d80718afbdfb6c379efe0 (patch) | |
tree | a5135b303556de70d7f4cc26179e883408f48d02 /src/sdtui.c | |
parent | a7068157f25e4e5b9bec2dd134e5d1e7655ff837 (diff) | |
download | tdv-1f811d903e990ccc6c9d80718afbdfb6c379efe0.tar.gz tdv-1f811d903e990ccc6c9d80718afbdfb6c379efe0.tar.xz tdv-1f811d903e990ccc6c9d80718afbdfb6c379efe0.zip |
Don't increment the result from GUINT_TO_POINTER
Increment the argument instead.
Diffstat (limited to 'src/sdtui.c')
-rw-r--r-- | src/sdtui.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |