diff options
Diffstat (limited to 'tests/reuse1.c')
-rw-r--r-- | tests/reuse1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/reuse1.c b/tests/reuse1.c index 2b9cf57..1a7dff0 100644 --- a/tests/reuse1.c +++ b/tests/reuse1.c @@ -107,7 +107,7 @@ main() for (i = 1; i < NUMTHREADS; i++) { washere = 0; - assert(pthread_create(&t, &attr, func, (void *) i) == 0); + assert(pthread_create(&t, &attr, func, (void *)(size_t)i) == 0); pthread_join(t, &result); assert((int)(size_t) result == i); assert(washere == 1); |