mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
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.
This commit is contained in:
committed by
Manish Singh
parent
0fd4b6d674
commit
2b78955298
@@ -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);
|
||||
|
Reference in New Issue
Block a user