diff options
Diffstat (limited to 'tests/test-tss.c')
-rw-r--r-- | tests/test-tss.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-tss.c b/tests/test-tss.c index b23767d218..081e1b0359 100644 --- a/tests/test-tss.c +++ b/tests/test-tss.c @@ -170,7 +170,8 @@ test_tss (void) /* Spawn the threads. */ for (i = 0; i < THREAD_COUNT; i++) - ASSERT (thrd_create (&threads[i], worker_thread, NULL) == thrd_success); + ASSERT (thrd_create (&threads[i], worker_thread, (void *) (uintptr_t) i) + == thrd_success); /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++) |