summaryrefslogtreecommitdiff
path: root/tests/thread-test.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2003-11-18 01:29:36 +0000
committerManish Singh <yosh@src.gnome.org>2003-11-18 01:29:36 +0000
commit2b789552985c20a19f8450cfe6afd057b550bfe1 (patch)
tree09d92562f4758dc80e2d6026dea808bbe218280e /tests/thread-test.c
parent0fd4b6d674a25de76a44f4341521a60167ceb2bf (diff)
downloadglib-2b789552985c20a19f8450cfe6afd057b550bfe1.tar.gz
Use GUINT_TO_POINTER for g_thread_create data.
Mon Nov 17 17:28:10 2003 Manish Singh <yosh@gimp.org> * tests/thread-test.c (test_g_thread_once): Use GUINT_TO_POINTER for g_thread_create data.
Diffstat (limited to 'tests/thread-test.c')
-rw-r--r--tests/thread-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/thread-test.c b/tests/thread-test.c
index 8bed23bd1..47b030bbb 100644
--- a/tests/thread-test.c
+++ b/tests/thread-test.c
@@ -354,7 +354,7 @@ test_g_thread_once (void)
G_LOCK (test_g_once);
for (i = 0; i < G_ONCE_THREADS; i++)
{
- threads[i] = g_thread_create (test_g_once_thread, (gpointer)(i%2),
+ threads[i] = g_thread_create (test_g_once_thread, GUINT_TO_POINTER(i%2),
TRUE, NULL);
}
G_UNLOCK (test_g_once);