aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/tst-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/tst-context.c')
-rw-r--r--linuxthreads/tst-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/tst-context.c b/linuxthreads/tst-context.c
index 9066e837e2..5c3272a4fb 100644
--- a/linuxthreads/tst-context.c
+++ b/linuxthreads/tst-context.c
@@ -98,7 +98,7 @@ main (void)
}
for (n = 0; n < N; ++n)
- if (pthread_create (&th[n], NULL, threadfct, (void *) n) != 0)
+ if (pthread_create (&th[n], NULL, threadfct, (void *) (long int) n) != 0)
error (EXIT_FAILURE, errno, "cannot create all threads");
for (n = 0; n < N; ++n)