summaryrefslogtreecommitdiff
path: root/tests/cancel6d.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cancel6d.c')
-rw-r--r--tests/cancel6d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cancel6d.c b/tests/cancel6d.c
index bf770d2..e22a3c5 100644
--- a/tests/cancel6d.c
+++ b/tests/cancel6d.c
@@ -165,11 +165,11 @@ main()
for (i = 1; i <= NUMTHREADS; i++)
{
int fail = 0;
- int result = 0;
+ void* result = (void*)0;
assert(pthread_join(t[i], (void *) &result) == 0);
- fail = (result != (int) PTHREAD_CANCELED);
+ fail = ((int)(size_t)result != (int) PTHREAD_CANCELED);
if (fail)
{